/* WEES AI. WEES teal and coral; light and dark themes. */
:root {
  --brand: #1f8a8e; --brand-2: #0f4f52; --brand-soft: rgba(31, 138, 142, .12); --coral: #ff6b5b;
  --bg: #f6f8f8; --surface: #ffffff; --surface-2: #eef3f3; --text: #142022; --muted: #5d6c6e; --line: #dde5e5;
  --side: #0f2f31; --side-2: #163f42; --side-text: #d8ecec; --side-muted: #8fb2b3;
  --code-bg: #0f1a1b; --danger: #c62828; --ok: #1b8a4a; --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 40, 42, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1415; --surface: #151d1e; --surface-2: #1b2627; --text: #e8f0f0; --muted: #93a6a7; --line: #273536;
    --side: #0a1d1f; --side-2: #12302f; --brand-soft: rgba(46, 170, 175, .16); --danger: #ff6b6b; --ok: #4cd07d;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1415; --surface: #151d1e; --surface-2: #1b2627; --text: #e8f0f0; --muted: #93a6a7; --line: #273536;
  --side: #0a1d1f; --side-2: #12302f; --brand-soft: rgba(46, 170, 175, .16); --danger: #ff6b6b; --ok: #4cd07d;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 600; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.input, .field input, .field select, .field textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field { display: block; margin: 0 0 12px; font-weight: 600; font-size: 14px; }
.field > input, .field > select, .field > textarea { margin-top: 5px; font-weight: 400; }
.help { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
.flash { list-style: none; padding: 0; margin: 0 0 14px; }
.flash li { padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); margin-bottom: 6px; }
.flash li.error { background: rgba(198, 40, 40, .12); color: var(--danger); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }

/* --- Sign in / plain pages --- */
.plain { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(31,138,142,.35), transparent),
              radial-gradient(800px 500px at 110% 110%, rgba(255,107,91,.18), transparent), var(--side); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 32px 30px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 14px 0 4px; font-size: 26px; }
.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark img { width: 46px; height: 46px; border-radius: 12px; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.brand-name span { color: var(--coral); }
.auth-card .btn.primary { width: 100%; padding: 12px; margin-top: 6px; font-size: 16px; }
.auth-error { background: rgba(198,40,40,.1); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }

/* --- The app --- */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar { width: 288px; flex: 0 0 288px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; }
.side-top { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.side-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; }
.side-brand .brand-name { font-size: 18px; color: #fff; }
.new-chat { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-weight: 600; }
.new-chat:hover { background: rgba(255,255,255,.12); }
.side-search { width: 100%; padding: 8px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); color: var(--side-text); }
.side-search::placeholder { color: var(--side-muted); }
.side-links { display: flex; flex-direction: column; padding: 0 8px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--side-text); background: none; border: 0;
  cursor: pointer; text-align: left; text-decoration: none; font-size: 14px; }
.side-link:hover, .side-link.active { background: var(--side-2); }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 12px; min-height: 0; }
.side-h { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--side-muted); margin: 14px 10px 4px; display: flex; justify-content: space-between; align-items: center; }
.side-h button { background: none; border: 0; color: var(--side-muted); cursor: pointer; font-size: 15px; }
.conv { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; color: var(--side-text); cursor: pointer; font-size: 14px; }
.conv:hover, .conv.active { background: var(--side-2); }
.conv .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .more { visibility: hidden; background: none; border: 0; color: var(--side-muted); cursor: pointer; padding: 0 4px; }
.conv:hover .more, .conv.active .more { visibility: visible; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 10px; }
.me { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--side-text); cursor: pointer; padding: 6px; border-radius: 10px; text-align: left; }
.me:hover { background: var(--side-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex: 0 0 32px; }
.me .who { flex: 1; min-width: 0; }
.me .who strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { font-size: 12px; color: var(--side-muted); }
.meter { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); min-height: 56px; }
.topbar .title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 17px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.mobile-only { display: none; }
.picker-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 600; max-width: 46vw; }
.picker-btn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn:hover { border-color: var(--brand); }
.mode-pill { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }

.thread { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.thread-inner { max-width: 860px; margin: 0 auto; padding: 22px 20px 40px; }
.thread.wide .thread-inner { max-width: 1400px; }
.welcome { max-width: 760px; margin: 8vh auto 0; text-align: center; padding: 0 20px; }
.welcome img { width: 72px; height: 72px; border-radius: 20px; box-shadow: var(--shadow); }
.welcome h1 { font-size: 30px; margin: 14px 0 4px; letter-spacing: -.02em; }
.welcome p { color: var(--muted); margin: 0 0 22px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; text-align: left; }
.idea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.idea:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.idea strong { display: block; font-size: 14px; }
.idea span { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0 0; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.turn { margin: 0 0 26px; }
.q { display: flex; justify-content: flex-end; }
.q .bubble { background: var(--brand-soft); border: 1px solid rgba(31,138,142,.2); padding: 10px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%;
  white-space: pre-wrap; word-wrap: break-word; }
.q-actions { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity .15s; }
.turn:hover .q-actions { opacity: 1; }
.att-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.att { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.att img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.att.img { padding: 0; border: 0; background: none; }
.answers { margin-top: 12px; }
.answers.lanes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.answer { position: relative; }
.answers.lanes .answer { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); min-width: 0; }
.answers.lanes .answer.chosen { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.a-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.a-head .model { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.a-head .model img { width: 20px; height: 20px; border-radius: 6px; }
.routed { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 3px 8px; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.dots::after { content: ""; display: inline-block; width: 14px; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.md { word-wrap: break-word; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md p, .md ul, .md ol, .md pre, .md table, .md blockquote { margin: 0 0 12px; }
.md h1, .md h2, .md h3 { margin: 18px 0 8px; line-height: 1.3; }
.md h1 { font-size: 22px; } .md h2 { font-size: 19px; } .md h3 { font-size: 16px; }
.md pre { position: relative; background: var(--code-bg); color: #e6edf3; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: 13.5px; }
.md pre code { background: none; padding: 0; }
.md :not(pre) > code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.md table { border-collapse: collapse; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md th { background: var(--surface-2); }
.md blockquote { border-left: 3px solid var(--brand); padding: 2px 12px; color: var(--muted); }
.md img { max-width: 100%; border-radius: 10px; }
.copy-code { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 3px 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #e6edf3; cursor: pointer; opacity: 0; }
.md pre:hover .copy-code { opacity: 1; }
.cursor::after { content: "▍"; color: var(--brand); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.a-error { color: var(--danger); background: rgba(198,40,40,.08); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.source { display: inline-flex; align-items: center; gap: 5px; max-width: 260px; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source b { color: var(--brand); }
.a-actions { display: flex; align-items: center; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.a-actions .icon-btn { font-size: 14px; padding: 4px 7px; }
.a-meta { font-size: 12px; color: var(--muted); margin-left: 6px; }
.gen-img { max-width: min(100%, 560px); border-radius: 14px; display: block; box-shadow: var(--shadow); }
.gen-video { width: min(100%, 640px); border-radius: 14px; display: block; box-shadow: var(--shadow); background: #000; }
.gen-audio { width: min(100%, 480px); display: block; }
.gen-dl { margin-top: 8px; display: inline-block; }
.file-card { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.file-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 14px; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { color: var(--muted); }
.lyrics summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.lyrics pre { white-space: pre-wrap; font-family: inherit; margin: 0; color: var(--text-2, inherit); }
.council { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.council > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; list-style: none; display: flex; gap: 8px; align-items: center; }
.council > summary::-webkit-details-marker { display: none; }
.council .members { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 0 12px 12px; }
.council .member { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; max-height: 380px; overflow-y: auto; }
.council-final { border-left: 3px solid var(--coral); padding-left: 14px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge.coral { background: rgba(255,107,91,.15); color: #e2513f; }

/* Composer */
.composer-wrap { padding: 0 16px 14px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.composer { max-width: 860px; margin: 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 8px 10px 8px; }
.composer:focus-within { border-color: var(--brand); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: none; padding: 6px 6px 4px; max-height: 40vh; min-height: 28px; }
.c-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px; }
.c-file { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: var(--surface-2); padding: 4px 8px; border-radius: 9px; }
.c-file img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.c-file button { background: none; border: 0; cursor: pointer; color: var(--muted); }
.c-file.loading { opacity: .6; }
.c-bar { display: flex; align-items: center; gap: 4px; }
.c-bar .spacer { flex: 1; }
.toggle { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 13px; color: var(--muted); }
.toggle.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.send:disabled { opacity: .4; cursor: default; }
.send.stop { background: var(--text); }
.c-hint { max-width: 860px; margin: 6px auto 0; font-size: 12px; color: var(--muted); text-align: center; }
.drop { position: absolute; inset: 0; background: rgba(31,138,142,.15); border: 3px dashed var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--brand); z-index: 30; pointer-events: none; }
.slash { position: absolute; bottom: 100%; left: 0; right: 0; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 6px; padding: 6px; }
.slash button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.slash button:hover, .slash button.sel { background: var(--surface-2); }
.slash small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menus and dialogs */
.pop { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 220px; max-height: 80vh; overflow-y: auto; }
.pop .mi { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--text); }
.pop .mi:hover { background: var(--surface-2); }
.pop .mi.danger { color: var(--danger); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.picker { width: min(560px, 94vw); padding: 0; }
.picker-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.picker-tabs button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 11px; cursor: pointer; font-size: 13px; }
.picker-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.picker-body { padding: 8px; max-height: 60vh; overflow-y: auto; }
.picker-search { width: 100%; margin-bottom: 6px; }
.pm { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pm:hover { background: var(--surface-2); }
.pm.sel { background: var(--brand-soft); }
.pm .pm-l { flex: 1; min-width: 0; }
.pm .pm-l strong { display: block; font-size: 14px; }
.free-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; color: var(--ok); border: 1px solid var(--ok); }
.pm .pm-l small { color: var(--muted); font-size: 12px; }
.pm input[type=checkbox] { width: 16px; height: 16px; }
.pm-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 10px 4px; }
.picker-foot { border-top: 1px solid var(--line); padding: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, 94vw); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(5, 20, 22, .55); }
.modal form { padding: 20px 22px; }
.modal h2 { margin: 0 0 12px; font-size: 19px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 80; box-shadow: var(--shadow); max-width: 90vw; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.list-row .grow { flex: 1; min-width: 0; }

/* Admin */
.admin { display: flex; min-height: 100vh; }
.admin-nav { width: 240px; flex: 0 0 240px; background: var(--side); color: var(--side-text); padding: 14px 10px; }
.admin-nav a.side-link { margin: 1px 0; }
.admin-body { flex: 1; min-width: 0; padding: 24px 28px 60px; max-width: 1200px; }
.admin-body h1 { margin: 0 0 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.card h2 { margin: 0 0 10px; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-size: 24px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 13px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bars div { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars-l { display: flex; gap: 4px; font-size: 10px; color: var(--muted); }
.bars-l span { flex: 1; text-align: center; }
.prov { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: start; }
.prov-name { font-weight: 700; font-size: 16px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--danger); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline-form .input { width: auto; flex: 1; min-width: 220px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters .input { width: auto; }
.m-row td input.input { padding: 5px 8px; font-size: 13px; }

@media (max-width: 860px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.side-open .sidebar { transform: none; }
  .mobile-only { display: inline-flex; }
  .thread-inner { padding: 16px 12px 30px; }
  .composer-wrap { padding: 0 8px 8px; }
  .welcome { margin-top: 4vh; }
  .admin { flex-direction: column; }
  .admin-nav { width: auto; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .admin-nav .side-brand { display: none; }
  .admin-body { padding: 16px; }
  .answers.lanes { grid-template-columns: 1fr; }
}
.update-bar { position: fixed; z-index: 50; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--brand); box-shadow: var(--shadow); font-size: 14px; }
.icon-btn.on { background: var(--brand-soft); border-radius: 8px; }
.chip.pick { cursor: pointer; border: 1px solid var(--line); background: var(--surface); }
.chip.pick.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.mem-h { font-size: 15px; margin: 16px 0 6px; }
.suggestion { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.suggestion blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--coral); background: var(--surface-2); border-radius: 6px; }

