:root {
  --base00: #e7e9db;
  --base01: #d9dbc8;
  --base02: #c1c3b0;
  --base03: #8e8e71;
  --base04: #6e6e5e;
  --base05: #474936;
  --base06: #2f3222;
  --base07: #20210b;
  --orange: #ef6155;
  --yellow: #fec418;
  --green: #48b685;
  --aqua: #5bc4bf;
  --purple: #815ba4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--base06);
  background:
    linear-gradient(120deg, var(--base00) 0%, var(--base01) 40%, #f5f3e8 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--orange);
  color: white;
}
.topbar a { color: white; text-decoration: none; margin-left: 1rem; font-weight: 700; }
.brand { font-weight: 800; letter-spacing: 0.02em; }

.page, .login-wrap {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero-block, .splash {
  background: linear-gradient(135deg, var(--orange), #f99b15);
  color: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 24px rgba(239,97,85,0.2);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: #fffaf0;
  border: 2px solid var(--base02);
  border-radius: 14px;
  padding: 1rem;
}

label { display: block; font-weight: 600; margin: 0.7rem 0; }
input, select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem;
  border-radius: 8px;
  border: 2px solid var(--base02);
  background: white;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover { filter: brightness(0.95); }

.result {
  min-height: 220px;
  border-color: var(--aqua);
  background: linear-gradient(180deg, #fff, #f3fbfa);
}

.muted { color: var(--base04); }
.error { color: #b00020; font-weight: 700; }
.htmx-indicator { display: none; margin-left: 0.7rem; color: var(--purple); }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }

@media (max-width: 840px) {
  .grid, .row { grid-template-columns: 1fr; }
}
