:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --border: #dedede;
  --text: #242424;
  --text-muted: #5c5c5c;
  --accent: #b11f4b;
  --accent-hover: #9a1a41;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

html,
body,
#root {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.app__subtitle {
  margin-left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.app__user {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}

.app__chat {
  flex: 1;
  min-height: 0;
  background: var(--surface);
}

.app__chat > * {
  height: 100%;
}

.landing {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.landing__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 32rem;
  padding: 2.25rem 2.5rem;
}

.landing__card h1 {
  font-size: 1.5rem;
  margin: 0.75rem 0 1rem;
}

.landing__card p {
  color: var(--text-muted);
  line-height: 1.5;
}

.landing__error {
  color: var(--danger) !important;
  font-weight: 600;
}

.landing__button {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.landing__button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.landing__button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.landing__note {
  font-size: 0.85rem;
  margin-bottom: 0;
}
