/* PowerBI AI: the page, in Verity's look. The font and theme variables first, then the list of reports on the left and the conversation on the right. */

/* Inter, kept here (static/fonts, with its licence) so the page loads nothing from elsewhere */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark light;
  --bg: #15171c; --side: #111318; --panel: #1c1f26; --panel-2: #262a34; --hover: #20242d; --border: #2b2f3a; --border-strong: #3a3f4c;
  --text: #e7e9ee; --text-2: #c3c8d2; --muted: #9aa1b0;
  --accent: #4a6ae6; --accent-hover: #5d7bee; --accent-strong: #93a8f6; --accent-soft: rgba(110, 140, 245, 0.16); --accent-text: #ffffff;
  --current: rgba(110, 140, 245, 0.2); --ring: rgba(110, 140, 245, 0.28); --focus-border: #56607a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25); --shadow-big: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --danger: #e5534b; --warn: #d29922; --ok: #3fb950; --radius: 10px;
  --ok-soft: rgba(63, 185, 80, 0.14); --warn-soft: rgba(210, 153, 34, 0.18); --danger-soft: rgba(229, 83, 75, 0.2);
}
:root[data-theme="light"] {
  --bg: #ffffff; --side: #f7f8fa; --panel: #ffffff; --panel-2: #f1f2f5; --hover: #eef0f4; --border: #e6e8ec; --border-strong: #dadde4;
  --text: #16181d; --text-2: #3a3f4a; --muted: #5b616e;
  --accent: #2f54d8; --accent-hover: #1f3fae; --accent-strong: #1f3fae; --accent-soft: rgba(47, 84, 216, 0.09);
  --current: #e9edfb; --ring: rgba(47, 84, 216, 0.12); --focus-border: #a9b4cc;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 4px 16px rgba(22, 24, 29, 0.05); --shadow-big: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 24px rgba(22, 24, 29, 0.06);
  --danger: #c62f27; --warn: #9a6700; --ok: #1a7f37;
  --ok-soft: rgba(26, 127, 55, 0.1); --warn-soft: rgba(154, 103, 0, 0.14); --danger-soft: rgba(198, 47, 39, 0.14);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --side: #f7f8fa; --panel: #ffffff; --panel-2: #f1f2f5; --hover: #eef0f4; --border: #e6e8ec; --border-strong: #dadde4;
    --text: #16181d; --text-2: #3a3f4a; --muted: #5b616e;
    --accent: #2f54d8; --accent-hover: #1f3fae; --accent-strong: #1f3fae; --accent-soft: rgba(47, 84, 216, 0.09);
    --current: #e9edfb; --ring: rgba(47, 84, 216, 0.12); --focus-border: #a9b4cc;
    --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 4px 16px rgba(22, 24, 29, 0.05); --shadow-big: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 24px rgba(22, 24, 29, 0.06);
    --danger: #c62f27; --warn: #9a6700; --ok: #1a7f37;
    --ok-soft: rgba(26, 127, 55, 0.1); --warn-soft: rgba(154, 103, 0, 0.14); --danger-soft: rgba(198, 47, 39, 0.14);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }

/* The mark: Highfield's crest (static/logo.png), with rounded corners and a hairline so it shows on a dark page */
.logo { flex: none; display: block; border-radius: 28%; box-shadow: 0 0 0 1px var(--border); }

/* Layout: the list of reports | the conversation, each scrolling on its own */
main.app { display: flex; height: 100vh; height: 100dvh; }
.sidebar { flex: none; width: 280px; min-height: 0; background: var(--side); border-right: 1px solid var(--border); padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 16px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.brand h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin: 0 -6px; padding: 0 6px; }
.quiet { margin: 0; color: var(--muted); font-size: 13px; }
.side-scroll .quiet { padding: 0 10px; }

/* The foot of the list: who is signed in */
.side-foot { flex: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 8px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 80vw; z-index: 30; }
.toast.show { opacity: 1; }
.toast.err { background: var(--danger); color: #fff; }

/* Dialogs */
dialog { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); padding: 22px 24px; width: min(520px, 92vw); box-shadow: var(--shadow-big); }
dialog textarea { width: 100%; min-height: 110px; resize: vertical; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
dialog textarea:focus { outline: none; border-color: var(--accent); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
dialog p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
/* This month's tokens, everyone together, against the allowance: amber from four fifths, red once used up */
.usage { display: flex; flex-direction: column; gap: 5px; padding: 0 8px; font-size: 12px; color: var(--text); }
.usage .bar { width: 100%; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.usage .bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s; }
.usage.warn { color: var(--warn); } .usage.warn .bar i { background: var(--warn); }
.usage.stop { color: var(--danger); font-weight: 600; } .usage.stop .bar i { background: var(--danger); }
.account { display: flex; align-items: center; gap: 2px; padding-left: 8px; }
.avatar { flex: none; width: 32px; height: 32px; margin-right: 8px; border-radius: 50%; background: #1d1d1b; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.me { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.me .name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .sub a { color: var(--muted); text-decoration: none; }
.me .sub a:hover { color: var(--accent-strong); text-decoration: underline; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
.sidebar .icon-btn:hover { background: var(--hover); }

/* Buttons */
.btn { padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--panel-2); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.big { width: 100%; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; }
.btn:focus-visible, .icon-btn:focus-visible, .history .row:focus-visible, .send-btn:focus-visible, .starter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill { font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.err { background: var(--danger-soft); color: var(--danger); }
.link { font: inherit; font-size: 12px; color: var(--accent-strong); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link:focus-visible { outline: 2px solid var(--accent); border-radius: 3px; }

/* Search, and the list of reports: a workspace's name, then its reports */
.search-row { flex: none; display: flex; align-items: center; gap: 4px; }
.search-row .search-box { flex: 1; min-width: 0; }
.search-row .icon-btn { width: 44px; height: 44px; }
.icon-btn.busy svg { animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .icon-btn.busy svg { animation-duration: 2.4s; } }
/* A workspace, as Verity shows a project: its name and how many reports it has, folding its reports away */
.history .project { display: flex; align-items: center; gap: 2px; margin-top: 10px; }
.history .project:first-child { margin-top: 0; }
.history .project .fold { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.history .project .fold:hover { background: var(--hover); }
.history .project .fold .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history .project .fold .count { flex: none; margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.history .project .fold svg { flex: none; color: var(--muted); transition: transform .15s; }
.history .project .fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
.history .project .fold:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.history .in-project { display: flex; flex-direction: column; gap: 2px; margin-left: 12px; padding-left: 6px; border-left: 1px solid var(--border); }
.search-box { flex: none; position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search { width: 100%; min-height: 44px; padding: 0 12px 0 36px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.history { display: flex; flex-direction: column; gap: 2px; }
.history:empty { display: none; }
.history .day { padding: 14px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.history .day:first-child { padding-top: 8px; }
.history .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; align-items: center; padding: 9px 10px; border: 0; border-radius: 8px; cursor: pointer; background: none; text-align: left; font: inherit; color: var(--text-2); width: 100%; }
.history .row:hover { background: var(--hover); }
.history .row.current { background: var(--current); color: var(--text); }
.history .row.current .name { font-weight: 500; }
.history .name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The conversation: its title, the messages, the box. With no messages yet there is a greeting, the box and the starters instead, in the middle. */
.chat { flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--bg); }
.chat-head { flex: none; min-height: 61px; padding: 10px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.chat-head h2 { margin: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .btn { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 14px; }
.banner { flex: none; padding: 10px 24px; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--accent-soft); }
.banner.err { background: var(--danger-soft); }
.banner-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.banner-text b { font-weight: 600; }
.banner-text b:empty { display: none; }

.empty { display: none; }
.empty.show { display: contents; } /* its parts sit in the conversation's own column, so the box can come between the greeting and the starters */
.chat:has(> .empty.show) { overflow-y: auto; }
/* No title until there is a conversation: only Actions, at the top right */
.chat:has(> .empty.show) > .chat-head { order: 0; border-bottom: 0; }
.chat:has(> .empty.show) > .chat-head .chat-title { visibility: hidden; }

/* Menus: Actions, at the top right of the chat */
.menu { position: relative; flex: none; }
.menu > .btn { display: inline-flex; align-items: center; gap: 6px; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 6px; display: flex; flex-direction: column; z-index: 20; }
.menu-list button, .menu-list a { text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.menu-list button:hover:not(:disabled), .menu-list button:focus-visible, .menu-list a:hover, .menu-list a:focus-visible { background: var(--panel-2); outline: none; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 6px; flex: none; }
.hello { order: 1; flex: none; margin: auto auto 28px; padding: 24px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.hello h3 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hello p { margin: 0; font-size: 16px; color: var(--muted); max-width: 620px; }
.chat:has(> .empty.show) > .banner { order: 0; }
.chat:has(> .empty.show) > .composer { order: 2; width: min(720px, calc(100% - 48px)); border-radius: 18px; padding: 12px 12px 12px 18px; gap: 8px; box-shadow: var(--shadow-big); }
.chat:has(> .empty.show) > .composer textarea { min-height: 72px; font-size: 16px; }
.empty > .starters { order: 3; margin: 28px auto 0; }
.chat:has(> .empty.show) > .disclaimer { order: 6; margin: 28px 0 auto; padding-bottom: 24px; }
.starters { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(720px, calc(100% - 48px)); }
.starter { display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; font-size: 14px; line-height: 1.4; color: var(--text); background: none; border: 1px solid var(--border); border-radius: 14px; padding: 16px; cursor: pointer; }
.starter:hover { border-color: var(--focus-border); background: var(--side); }
.starter svg { flex: none; margin-top: 1px; color: var(--accent); }
.starter-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.starter-text b { font-size: 14px; font-weight: 600; }
.starter-text small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.spinner { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.msgs { list-style: none; margin: 0; padding: 32px 24px 20px; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.msgs:empty { display: none; }
.msg { flex: none; display: flex; flex-direction: column; gap: 6px; max-width: 760px; width: 100%; margin: 0 auto; }
.msg.user { align-items: flex-end; }
.msg.user .bubble { max-width: 80%; background: var(--accent-soft); border-radius: 16px 16px 4px 16px; padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
/* An answer: the mark on the left, the name, the queries that were run, then what was written */
.msg.assistant { position: relative; padding-left: 44px; gap: 10px; }
.msg.assistant::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 28%; background: #1d1d1b url("/static/logo.png") center / cover no-repeat; box-shadow: 0 0 0 1px var(--border); }
.msg .who { font-size: 14px; font-weight: 600; line-height: 30px; margin-bottom: -6px; }
.msg .note { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); }
.msg .note.err { background: var(--danger-soft); }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.msg.streaming .md > :last-child::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s infinite; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } .typing i, .msg.streaming .md > :last-child::after { animation: none; } }

/* A query run for an answer: what it was for and how many rows came back; opened, the query itself */
.steps { display: flex; flex-direction: column; gap: 6px; }
details.step { border: 1px solid var(--border); border-radius: 10px; background: var(--side); font-size: 13px; }
details.step summary { cursor: pointer; padding: 7px 12px; color: var(--muted); user-select: none; display: flex; align-items: center; gap: 8px; list-style: none; }
details.step summary::-webkit-details-marker { display: none; }
details.step summary::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details.step[open] summary::before { transform: rotate(45deg); }
details.step .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.step pre { margin: 0; padding: 10px 12px; border-top: 1px solid var(--border); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: var(--text-2); }
details.step .why { padding: 8px 12px; border-top: 1px solid var(--border); color: var(--danger); }

/* Markdown in answers */
.md { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md blockquote, .md .codeblock, .md .table-wrap { margin: 0 0 12px; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 18px 0 8px; line-height: 1.3; font-weight: 600; }
.md h1 { font-size: 20px; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md h4, .md h5, .md h6 { font-size: 15px; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 6px 0; }
.md li > p, .md li > ul, .md li > ol { margin: 0 0 4px; }
.md a { color: var(--accent); }
.md a:hover { color: var(--accent-strong); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.md blockquote { border-left: 3px solid var(--border-strong); padding: 2px 12px; color: var(--muted); }
.md code { font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 4px; }
.md .codeblock { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--side); }
.md .code-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.md pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
.md pre code { border: 0; padding: 0; background: none; white-space: pre; }
.md .table-wrap { overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 14px; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--side); font-weight: 600; }

/* The box to write in: the words, then a row with the arrow to send on the right */
.composer { flex: none; align-self: center; width: min(760px, calc(100% - 48px)); border: 1px solid var(--border-strong); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); padding: 10px 10px 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.composer:focus-within { border-color: var(--focus-border); box-shadow: 0 0 0 3px var(--ring); }
.composer textarea { border: 0; outline: none; resize: none; background: none; color: var(--text); font: inherit; font-size: 15px; line-height: 1.5; max-height: 40vh; min-height: 34px; padding: 6px 0; }
.composer textarea::placeholder { color: var(--muted); }
.composer-row { display: flex; align-items: center; gap: 2px; }
.composer .hint { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
/* By Send: how much of what the model is sent at once is left in this chat */
.composer .room { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-right: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.composer .room i { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(currentColor calc(var(--used, 0) * 1%), var(--border) 0);
  -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px); mask: radial-gradient(circle, transparent 3.5px, #000 4px); }
.composer .room.low { color: var(--warn); }
.composer .room.full { color: var(--danger); font-weight: 600; }
.send-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send-btn:hover:not(:disabled) { background: var(--accent-hover); }
.send-btn:disabled { opacity: .4; cursor: default; }
.send-btn.stop { background: var(--danger); }
.send-btn.stop:hover:not(:disabled) { filter: brightness(1.1); }
.disclaimer { flex: none; margin: 10px 0 16px; padding: 0 24px; text-align: center; font-size: 12px; color: var(--muted); }

/* A narrow screen: the list of reports above the conversation */
@media (max-width: 860px) {
  main.app { flex-direction: column; height: auto; }
  .sidebar { width: 100%; max-height: 50vh; border-right: 0; border-bottom: 1px solid var(--border); gap: 12px; }
  .chat { flex: none; height: 92vh; height: 92dvh; }
  .chat-head, .banner { padding-left: 16px; padding-right: 16px; }
  .starters { grid-template-columns: 1fr; }
  .msgs { padding: 20px 14px 12px; }
  .msg.user .bubble { max-width: 90%; }
  .hello h3 { font-size: 26px; }
}

/* The small pages for sign-in: its mark and name, what happened, and one thing to do next */
body.notice-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--side); }
.card { width: min(440px, 100%); padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-big); text-align: center; }
.card .brand { justify-content: center; margin-bottom: 22px; padding: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.card p { margin: 0 0 24px; color: var(--muted); }
.card .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; }
