:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d2330;
  --muted: #5b6475;
  --line: #d9dde5;
  --accent: #0b5fff;
  --notice: #fff6d6;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171d; --fg: #e8ebf1; --muted: #9aa3b5; --line: #2c323d; --accent: #6e9bff; --notice: #3a3420; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
.centered { display: grid; place-items: center; padding: 16px; }
.card { max-width: 28rem; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.card h1 { margin-top: 0; font-size: 1.4rem; }
.button, button { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.bar nav { display: flex; align-items: center; gap: 14px; }
.bar form { margin: 0; }
.bar button { padding: 4px 10px; background: transparent; color: var(--accent); }
.brand { font-weight: 600; }
.who, .muted { color: var(--muted); font-size: 0.85rem; }
body.chat { display: flex; flex-direction: column; overflow: hidden; }
.chat-main { flex: 1; min-height: 0; display: flex; }
.chat-main plato-assistant { display: block; flex: 1; width: 100%; height: 100%; }
.content { max-width: 72rem; margin: 0 auto; padding: 16px; }
.notice { padding: 8px 12px; border-radius: 8px; background: var(--notice); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
td.description { max-width: 32rem; white-space: pre-wrap; }
code.small { font-size: 0.8rem; word-break: break-all; }
.never { color: var(--muted); font-size: 0.85rem; }
td form { margin: 0; }
@media (max-width: 640px) { .who { display: none; } th:nth-child(3), td:nth-child(3) { display: none; } }
