@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg-top: #f7f1e6;
  --bg-bottom: #e8dcc3;
  --panel: rgba(255, 249, 238, 0.82);
  --ink: #1f2a36;
  --ink-soft: #5c6672;
  --accent: #d64f2a;
  --accent-2: #0c7f7a;
  --border: rgba(31, 42, 54, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(214, 79, 42, 0.3), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(12, 127, 122, 0.25), transparent 36%),
    linear-gradient(170deg, var(--bg-top), var(--bg-bottom));
}

#app {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.shell {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 0.9fr;
}

.panel,
.log-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.panel {
  padding: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 10px 0 4px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.05;
}

.subline {
  margin: 0;
  color: var(--ink-soft);
}

.drop-zone {
  margin-top: 18px;
  border: 2px dashed rgba(12, 127, 122, 0.45);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(12, 127, 122, 0.08);
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(214, 79, 42, 0.12);
  transform: translateY(-1px);
}

.request-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: center;
}

.request-row label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.request-row input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

.request-row input:focus {
  outline: 2px solid rgba(12, 127, 122, 0.24);
  border-color: rgba(12, 127, 122, 0.45);
}

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

.state-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.value {
  font-size: 16px;
  font-weight: 700;
}

.log-panel {
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
}

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.log {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(28, 36, 46, 0.96);
  color: #d5f4ef;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
  white-space: pre-wrap;
}

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

  .request-row {
    grid-template-columns: 1fr;
  }

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