@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url("chat.css");

:root {
  --bg: var(--color-background);
  --header: var(--color-card);
  --ink: var(--color-foreground);
  --muted: var(--color-muted-foreground);
  --line: var(--color-border);
  --surface: var(--color-card);
  --accent: var(--color-primary);
  --accent-ink: var(--color-primary-foreground);
  --user: #f3e8ff;
  --ok: #009e7a;
  --err: var(--color-destructive);
  --gutter: 1.25rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site-header,
.site-footer {
  flex-shrink: 0;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem var(--gutter);
}

.header-inner {
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-weight: 600;
}

.brand img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.footer-inner {
  justify-content: center;
  text-align: center;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.short {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 520px) {
  .header-actions .full {
    display: none;
  }

  .header-actions .short {
    display: inline;
  }
}
