/* GO Assistant: the chat page. Colours and type come from app.css (the shared house sheet). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-page { display: flex; flex-direction: column; min-height: 100vh; max-width: 860px; margin: 0 auto; padding: 0 14px; box-sizing: border-box; }
.chat-name { color: var(--fg-navy, var(--navy)); font-size: 1rem; }
[data-teams-theme="dark"] .chat-name { color: var(--text); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 8px 0 16px; }
.chat-empty { margin: auto 0; text-align: center; padding: 24px 8px; }
.chat-empty h1 { font-size: 1.5rem; margin: 0 0 8px; color: var(--fg-navy, var(--navy)); text-wrap: balance; }
[data-teams-theme="dark"] .chat-empty h1 { color: var(--text); }
.chat-empty p { color: var(--muted); max-width: 56ch; margin: 0 auto 18px; }
/* Rob's "Things to do": above the starters, the ones for now marked amber, the ones for soon grey */
.todo { text-align: left; max-width: 520px; margin: 0 auto 16px; padding: 12px 14px; border: 1px solid var(--grey-2); border-radius: 12px; background: var(--card); }
.todo h2 { font-size: .95rem; margin: 0 0 8px; }
.todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-item { display: flex; align-items: flex-start; gap: 10px; padding-left: 10px; border-left: 3px solid var(--amber); }
.todo-item.soon { border-left-color: var(--grey-2); }
.todo-text { flex: 1; font-size: .88rem; line-height: 1.4; color: var(--text); }
.todo-item .btn { flex: none; }
.todo-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chat-starters button { font: inherit; font-size: .88rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--grey-2); background: var(--card); color: var(--text); cursor: pointer; }
.chat-starters button:hover, .chat-starters button:focus-visible { border-color: var(--green); outline: none; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.it { align-self: flex-start; background: var(--card); color: var(--text); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.msg.it p { margin: 0 0 8px; }
.msg.it p:last-child, .msg.it ul:last-child { margin-bottom: 0; }
.msg.it ul { margin: 0 0 8px; padding-left: 20px; }
.msg.it code { background: var(--grey-1); padding: 1px 5px; border-radius: 5px; font-size: .88em; }
.steps { align-self: flex-start; font-size: .8rem; color: var(--muted); margin: -4px 0 0 4px; }
.steps div::before { content: "· "; }
.working { align-self: flex-start; color: var(--muted); font-size: .9rem; padding: 4px 6px; }
.working::after { content: "…"; animation: dots 1.2s steps(4, end) infinite; display: inline-block; width: 1.2em; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1.2em; } }
@media (prefers-reduced-motion: reduce) { .working::after { animation: none; width: 1.2em; } }
.change { align-self: stretch; background: var(--card); border: 1px solid var(--grey-2); border-left: 4px solid var(--amber); border-radius: 12px; padding: 12px 14px; }
.change.done { border-left-color: var(--green); }
.change.off { border-left-color: var(--grey-3); opacity: .8; }
.change h2 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.change .what { font-weight: 600; margin: 0 0 8px; }
.change .where { font-size: .82rem; color: var(--muted); margin: 0 0 8px; overflow-wrap: anywhere; }
.change details { font-size: .82rem; margin: 0 0 10px; }
.change summary { cursor: pointer; color: var(--muted); }
.change pre { background: var(--grey-1); border-radius: 8px; padding: 8px 10px; overflow-x: auto; margin: 6px 0 0; font-size: .8rem; }
.change .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.change .state { font-size: .85rem; font-weight: 600; color: var(--muted); }
.chat-ask { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--grey-1); padding: 10px 0 6px; }
.chat-ask textarea { flex: 1; font: inherit; resize: none; max-height: 180px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--grey-2); background: var(--card); color: var(--text); }
.chat-ask textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.chat-foot { font-size: .75rem; color: var(--muted); text-align: center; margin: 0 0 10px; }
.banner.problem { background: var(--red-soft); color: var(--fg-red, var(--red)); }
.banner .btn { margin-left: 10px; }
@media (max-width: 520px) { .msg { max-width: 94%; } .chat-empty h1 { font-size: 1.25rem; } }
/* Rob's ears (22/11/2026): the microphone beside Send */
.chat-ask .mic { flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--grey-2); background: var(--card); color: var(--fg-navy, var(--navy)); cursor: pointer; }
.chat-ask .mic svg { width: 18px; height: 18px; }
.chat-ask .mic:hover { border-color: var(--green); }
.chat-ask .mic[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; animation: micpulse 1.2s ease-out infinite; }
.chat-ask .mic:disabled { opacity: .5; cursor: default; }
@keyframes micpulse { from { box-shadow: 0 0 0 0 rgba(109, 184, 47, .55); } to { box-shadow: 0 0 0 10px rgba(109, 184, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .chat-ask .mic[aria-pressed="true"] { animation: none; } }
.chat-ask .mic:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.chat-ask .mic[hidden] { display: none; }
[data-teams-theme="dark"] .chat-ask .mic { color: var(--text); }
/* inside Rob's panel (/embed): the panel draws Rob, his mute button and Close; this page is only the conversation */
.embedded .chat-page { padding: 0 12px; }
.embedded .embed-bar { padding: 8px 0 0; min-height: 0; border: 0; background: transparent; box-shadow: none; }
.embedded .chat-empty { padding: 12px 4px; }
.embedded .chat-empty h1 { font-size: 1.2rem; }
.embedded .chat-foot { font-size: .7rem; }
