/* agentic-app-template site styles — one accent, light/dark, no framework. */

:root {
  /* guuey#1155: the default pair is the chat theme's (theme.json) — main.tsx
     sets both from it at boot; these are the pre-boot fallbacks and must equal
     it (bootstrap.test.ts pins them). #8b7cf6 clears the platform's 4.5:1
     brand-accent floor against #0e1014 (5.72:1); the old #6c5ce7 did not. */
  --app-accent: #8b7cf6;
  --app-on-accent: #0e1014;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --fg: #16181d;
  --fg-soft: #5b6270;
  --line: #e4e7ec;
  --ok: #1a7f37;
}

:root[data-mode="dark"] {
  --bg: #101216;
  --bg-soft: #181b21;
  --fg: #e8eaee;
  --fg-soft: #9aa2b1;
  --line: #262a33;
  --ok: #3fb950;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

a {
  color: var(--app-accent);
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--app-accent);
  color: var(--app-on-accent);
  font-size: 13px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar nav a {
  color: var(--fg-soft);
  text-decoration: none;
}

.topbar nav a.active {
  color: var(--fg);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-accent {
  background: var(--app-accent);
  border-color: var(--app-accent);
  color: var(--app-on-accent);
}

.btn-wide {
  width: 100%;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
}

.hero {
  text-align: center;
  padding: 64px 0;
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 12px;
}

.hero p {
  color: var(--fg-soft);
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.login {
  display: flex;
  justify-content: center;
}

.login-card,
.gate-card {
  width: 100%;
  max-width: 380px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
}

.gate-card {
  max-width: 520px;
}

.chat-page {
  display: flex;
  max-width: 880px;
  height: calc(100vh - 61px);
  padding: 16px 24px 24px;
}

.chat-fill {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--bg);
}

.facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.facts dt {
  color: var(--fg-soft);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

.calm {
  color: var(--fg-soft);
}

.hint {
  color: var(--fg-soft);
  font-size: 14px;
}

.error {
  color: #c0392b;
  font-size: 14px;
}
