:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --panel: #ffffff;
  --panel-soft: #f9f9f7;
  --ink: #171717;
  --muted: #6f6f6b;
  --line: #e5e2dc;
  --accent: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:last-child,
.panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.compact {
  gap: 12px;
}

.panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 18px 60px rgba(20, 20, 20, 0.06);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

input,
select,
button,
pre {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #a8a49a;
  background: #fff;
}

button {
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

button:hover {
  transform: translateY(-1px);
}

.quick-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions button,
.result-actions button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.quick-actions button.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.status {
  margin: -4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

pre {
  min-height: 140px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1080px);
    padding: 20px 0 32px;
  }

  h1 {
    font-size: 38px;
  }

  .panel {
    border-radius: 14px;
    padding: 14px;
  }

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

  .panel-head {
    display: grid;
  }

  button {
    width: 100%;
    min-height: 44px;
  }

  .quick-actions,
  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
