:root {
  --bg: #f8f6f2;
  --card: #ffffff;
  --text: #20202a;
  --muted: #6f7180;
  --line: #e4e0d8;
  --accent: #6554ff;
  --accent-dark: #4b3fd0;
  --danger: #b42318;
  --ok: #147d4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04);
  padding: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

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

.price {
  font-size: 32px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d9d3ff;
  color: var(--accent-dark);
  background: #f0edff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

button,
.button {
  appearance: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

button.small,
.button.small {
  min-height: 34px;
  padding: 6px 10px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.message {
  border-radius: 10px;
  padding: 10px 12px;
  background: #efecff;
  color: var(--accent-dark);
}

.message.error {
  background: #fff0ed;
  color: var(--danger);
}

.table {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .shell {
    padding-top: 40px;
  }

  .offer-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: start;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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