:root {
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --surface-2: #efebe0;
  --ink: #1c1b18;
  --muted: #6a665c;
  --line: #e0dacb;
  --accent: #0f6b4f;
  --accent-hover: #0b5a42;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0e9;
  --danger: #a3341f;
  --shadow: 0 1px 2px rgb(40 35 20 / 0.05), 0 12px 32px -12px rgb(40 35 20 / 0.18);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151512;
    --surface: #1e1e1a;
    --surface-2: #272722;
    --ink: #ecebe5;
    --muted: #a19d92;
    --line: #36352f;
    --accent: #56c9a0;
    --accent-hover: #6fd6b0;
    --accent-ink: #0a221a;
    --accent-soft: #1d3129;
    --danger: #f08a73;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
}

p {
  margin: 0.5rem 0 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

code {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

button,
select,
textarea,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header and footer */
.site-header {
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 4px;
}

.site-header nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-header nav a:hover {
  background: var(--surface-2);
}

.account {
  position: relative;
  display: inline-flex;
}

.account > a {
  border: 1px solid var(--line);
}

.account summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.account summary::-webkit-details-marker {
  display: none;
}

.account-menu {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 10;
  min-width: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.account-menu .email {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.account-menu .ghost {
  width: 100%;
  height: 34px;
  margin-top: 10px;
}

.auth {
  max-width: 460px;
  padding: 56px 0 24px;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.auth-form input[type="email"] {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 1.02rem;
}

.auth-form .primary {
  height: 46px;
}

.auth-status {
  min-height: 1.6em;
  margin-top: 14px;
  color: var(--muted);
}

.auth-status.error {
  color: var(--danger);
}

.site-footer {
  margin-top: 72px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h2 {
  font: 600 0.78rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-grid a:not(.brand) {
  display: block;
  padding: 3px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
}

.footer-grid a:not(.brand):hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 56px 0 8px;
  text-align: center;
}

.hero.compact {
  padding-top: 28px;
}

.hero.compact h1,
.page-head h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
}

.lede {
  max-width: 62ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-head {
  padding: 40px 0 8px;
}

.page-head .lede {
  margin-left: 0;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.section {
  padding-top: 64px;
}

.section.tight {
  padding-top: 24px;
}

.narrow {
  max-width: 760px;
}

/* Solver */
.solver {
  max-width: 800px;
  margin: 32px auto 0;
  text-align: left;
}

.composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  transition: border-color 0.15s;
}

.composer:focus-within {
  border-color: var(--accent);
}

.composer.dragging {
  border-style: dashed;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  max-height: 320px;
  resize: vertical;
  border: 0;
  background: transparent;
  padding: 4px 4px 8px;
  font-size: 1.06rem;
  line-height: 1.5;
}

.composer textarea:focus {
  outline: none;
}

.composer textarea::placeholder {
  color: var(--muted);
}

.attachment {
  position: relative;
  display: inline-block;
  margin: 0 0 8px 4px;
}

.attachment[hidden] {
  display: none;
}

.attachment img {
  display: block;
  max-height: 120px;
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.attachment button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  line-height: 1;
}

.symbols {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.symbols::-webkit-scrollbar {
  display: none;
}

.symbols button {
  flex: none;
  min-width: 38px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.95rem;
}

.symbols button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.selects {
  display: flex;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}

select {
  height: 40px;
  max-width: 100%;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.500 11 1.5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 11px center / 10px;
  appearance: none;
  font-size: 0.92rem;
}

.ghost,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.ghost {
  border: 1px solid var(--line);
  background: var(--bg);
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ghost svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.primary {
  min-width: 96px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.primary:hover {
  background: var(--accent-hover);
}

.primary.stop {
  background: var(--ink);
  color: var(--bg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.chips[hidden] {
  display: none;
}

.chips-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.89rem;
  text-align: left;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.outline {
  margin-left: auto;
  background: transparent;
  border-style: dashed;
}

.notice {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.92rem;
}

.usage {
  margin: 12px 2px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.usage[hidden] {
  display: none;
}

.usage.low {
  color: var(--danger);
}

/* Instant calculators */
.group-title {
  margin-top: 28px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.group-title + .topic-grid {
  margin-top: 10px;
}

.more-link {
  margin-top: 16px;
  font-weight: 500;
}

.conv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
  margin-bottom: 8px;
}

.tool {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

/* Four fields (two points) read better as a 2 × 2 grid. */
.tool-form:has(> label:nth-child(4):last-child) {
  grid-template-columns: 1fr 1fr;
}

.tool-form label,
.gpa-row label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tool-form .wide {
  grid-column: 1 / -1;
}

.tool-form span {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.tool input,
.tool textarea,
.tool select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
  font-size: 1.02rem;
}

.tool textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

.tool input:focus,
.tool textarea:focus,
.tool select:focus {
  outline: none;
  border-color: var(--accent);
}

.tool-result:not(:empty) {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.tool-result.error {
  background: var(--surface-2);
  color: var(--muted);
}

.tool-result .big {
  font: 600 1.7rem/1.25 var(--serif);
  overflow-wrap: anywhere;
}

.tool-result dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 10px 0 0;
}

.tool-result dt {
  color: var(--muted);
}

.tool-result dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tool-result ol {
  margin: 12px 0 0;
  padding: 12px 0 0 1.3em;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.tool-result li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.tool-ask {
  display: inline-block;
  margin-top: 14px;
  font-weight: 500;
  text-decoration: none;
}

.tool-ask:hover {
  text-decoration: underline;
}

.sci-display {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.sci-display input {
  height: 52px;
  font: 1.2rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
}

.sci-answer {
  min-height: 1.5em;
  text-align: right;
  font: 600 1.5rem var(--serif);
  overflow-wrap: anywhere;
}

.sci-keys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.sci-keys button {
  height: 42px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 0.95rem;
}

.sci-keys button:hover {
  border-color: var(--accent);
}

.sci-keys .num {
  background: var(--surface);
  font-weight: 600;
}

.sci-keys .op {
  background: var(--surface-2);
}

.sci-keys .eq {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.sci-keys .on {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.gpa-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 36px;
  gap: 8px;
  margin-bottom: 8px;
}

.gpa-row button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
}

.gpa-row button:hover {
  background: var(--surface-2);
}

/* Pricing */
.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: 28px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan .price {
  margin: 4px 0 0;
  font: 600 1.9rem var(--serif);
}

.plan ul {
  flex: 1;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}

.plan li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.plan li span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.plan a.primary {
  text-decoration: none;
}

.ghost.disabled {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* Conversation */
.thread:not(:empty) {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.msg {
  min-width: 0;
}

.msg.user {
  justify-self: end;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg.user img {
  display: block;
  max-width: min(320px, 100%);
  max-height: 260px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.msg.user img:only-child {
  margin-bottom: 0;
}

.msg.model {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.msg.error {
  border-color: var(--danger);
  color: var(--danger);
}

.answer {
  overflow-wrap: anywhere;
}

.answer > :first-child {
  margin-top: 0;
}

.answer > :last-child {
  margin-bottom: 0;
}

.answer p,
.answer ol,
.answer ul {
  margin: 0.7em 0;
}

.answer ol,
.answer ul {
  padding-left: 1.4em;
}

.answer li {
  margin: 0.5em 0;
}

.answer h1,
.answer h2,
.answer h3,
.answer h4 {
  font: 600 1.05rem var(--sans);
  letter-spacing: 0;
  margin: 1.2em 0 0.4em;
}

.answer blockquote {
  margin: 0.8em 0;
  padding: 2px 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.answer pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
}

.answer .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  margin: 0.8em 0;
}

.answer .katex {
  font-size: 1.08em;
}

.msg-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.msg-tools button {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--accent);
  font-weight: 500;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 6px 0;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

/* Content blocks */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.topic-card {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.topic-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 20px 0 0;
}

.steps.vertical {
  grid-template-columns: 1fr;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 1rem var(--serif);
}

.steps p,
.features p {
  color: var(--muted);
  margin-top: 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.features > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mistakes {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.mistakes li {
  margin: 8px 0;
}

.faq {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Graphing calculator */
.grapher {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.graph-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.fn-row:focus-within {
  border-color: var(--accent);
}

.fn-row.invalid {
  border-color: var(--danger);
}

.fn-row .dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.fn-row .lhs {
  flex: none;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

.fn-row input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  font: 0.98rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fn-row input:focus {
  outline: none;
}

.fn-row button {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.fn-row button:hover {
  background: var(--surface-2);
}

.graph-stage {
  position: relative;
  height: min(68vh, 600px);
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.graph-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.graph-stage canvas.panning {
  cursor: grabbing;
}

.graph-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  gap: 6px;
}

.graph-tools button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 1.1rem;
  line-height: 1;
}

.graph-tools button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.graph-readout {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font: 0.85rem ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .grapher {
    grid-template-columns: 1fr;
  }

  .graph-stage {
    order: -1;
    height: 56vh;
  }

  .hero {
    padding-top: 36px;
  }

  .section {
    padding-top: 48px;
  }

  .site-header nav a {
    padding: 6px 7px;
    font-size: 0.88rem;
  }

  .selects {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .selects label,
  .selects select {
    flex: 1;
    width: 100%;
    min-width: 0;
  }

  .composer-bar .primary {
    margin-left: auto;
  }

  .msg.model {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
