:root {
  color-scheme: light dark;
  --background: #f0f8f4;
  --surface: #fff;
  --text: #18382b;
  --muted: #476352;
  --line: #d8ebe1;
  --accent: #16875b;
  --pressed: #e9f5ef;
  --error: #973a35;
  font-family: system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111e18;
    --surface: #1a2a22;
    --text: #e9f5ef;
    --muted: #b2c9ba;
    --line: #365044;
    --accent: #97ceb5;
    --pressed: #21382b;
    --error: #ffb1a7;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
main {
  max-width: 32rem;
  margin-inline: auto;
  padding: clamp(24px, 6vw, 48px) clamp(16px, 5vw, 32px);
}
header { margin-bottom: 24px; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 38px); line-height: 1.15; }
ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
li + li { border-top: 1px solid var(--line); }
button { font: inherit; color: inherit; }
nav button {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
}
li:first-child button { border-radius: 15px 15px 0 0; }
li:last-child button { border-radius: 0 0 15px 15px; }
nav button:not(:disabled)::after {
  content: "";
  width: 8px;
  height: 8px;
  border-block-start: 2px solid var(--accent);
  border-inline-end: 2px solid var(--accent);
  flex-shrink: 0;
  rotate: 45deg;
  margin-inline-end: 4px;
}
nav button:disabled { color: var(--muted); cursor: default; }
nav button:active:not(:disabled), nav button:focus-visible { background: var(--pressed); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (hover: hover) {
  nav button:hover:not(:disabled) { background: var(--pressed); }
}
#menu-status { margin: 16px 0 0; line-height: 1.45; color: var(--muted); }
#menu-status[data-error="true"] { color: var(--error); }
#return-to-chat {
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: var(--surface);
  cursor: pointer;
}
