/* The Campus Helper (docs/demo-enhancement-v2.spec.md §5): the launchpad's quiet palette, the AI-agent teal as its one mark. */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #1e3a8a;
  --accent-soft: #eef2fb;
  --agent: #0f766e;
  --agent-soft: #e8f4f2;
  --refused: #b42318;
  --refused-soft: #fdf0ef;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.86em; padding: 1px 5px; border-radius: 4px; background: #f1f3f6; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-weight: 400; }
.small { font-size: 0.86rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .faint { display: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--agent); flex-shrink: 0; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { font-size: 0.86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.bar-button { padding: 6px 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 16px; }
h1 { margin: 8px 0 8px; font-size: 1.45rem; line-height: 1.25; }
.lead { margin: 0 0 18px; color: var(--muted); }

.people { display: grid; gap: 10px; margin-bottom: 14px; }
.person { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.person:hover, .person:focus-visible { border-color: var(--agent); }
.person span { font-size: 0.86rem; color: var(--muted); }
.error { padding: 10px 12px; color: var(--refused); background: var(--refused-soft); border-radius: 8px; }

.fold { margin-top: 16px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fold summary { cursor: pointer; font-weight: 600; }
.fold ol { margin: 10px 0 4px; padding-left: 20px; color: var(--muted); }
.fold li { margin-bottom: 6px; }

.agent-line { margin: 0 0 12px; overflow-wrap: anywhere; }
.log { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: var(--radius); overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; color: #fff; background: var(--accent); }
.msg.helper { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.msg.helper.refused { border-color: #f3c7c2; }
.msg p { margin: 0; white-space: pre-line; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg .refusal { margin-top: 6px; color: var(--refused); font-weight: 600; }
.msg details { margin-top: 8px; font-size: 0.84rem; color: var(--muted); }
.msg summary { cursor: pointer; }
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step { padding: 6px 8px; border-left: 3px solid var(--agent); background: var(--agent-soft); border-radius: 0 6px 6px 0; }
.step.no { border-left-color: var(--refused); background: var(--refused-soft); }
.step b { color: var(--ink); font-weight: 600; }
.typing { color: var(--faint); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { padding: 6px 12px; font: inherit; font-size: 0.86rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip:hover, .chip:focus-visible { border-color: var(--agent); }

.ask { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 0; background: var(--bg); }
.ask input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ask input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ask button { padding: 10px 16px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; cursor: pointer; }
.ask button:disabled { opacity: 0.6; cursor: default; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; max-width: 760px; width: 100%; margin: 0 auto; padding: 12px 16px 20px; }

@media (min-width: 560px) {
  .brand .faint { display: inline; }
  .people { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 1.7rem; }
}
