:root {
  --bg: #f2eee6;
  --paper: rgba(255, 252, 246, 0.92);
  --ink: #182126;
  --muted: #6f797d;
  --line: rgba(24, 33, 38, 0.12);
  --brand: #0f6c63;
  --brand-strong: #0a4d47;
  --accent: #d88738;
  --shadow: 0 24px 70px rgba(24, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(216, 135, 56, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 108, 99, 0.18), transparent 32%),
    linear-gradient(160deg, #efe7d8 0%, #f7f2e8 48%, #e8efe9 100%);
  min-height: 100vh;
}

.shell {
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.app-shell {
  padding-top: 20px;
}

.hero {
  padding: 24px 8px 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--brand-strong);
  margin-bottom: 8px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.95;
}

h2 {
  font-size: 26px;
}

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

.lead,
.panel-header p,
.muted {
  color: var(--muted);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-top: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel.narrow {
  max-width: 460px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline {
  flex-direction: row;
}

label {
  font-weight: 700;
  font-size: 14px;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(24, 33, 38, 0.16);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

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

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--brand-strong);
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.status {
  min-height: 22px;
  color: var(--brand-strong);
  font-size: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.userbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.result-table-wrap {
  border: 1px solid rgba(24, 33, 38, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  overflow: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.result-table th,
.result-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(24, 33, 38, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.result-table th {
  position: sticky;
  top: 0;
  background: #f7f1e7;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-table tbody tr:nth-child(even) {
  background: rgba(15, 108, 99, 0.04);
}

.repair-card {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(216, 135, 56, 0.08);
  border: 1px solid rgba(216, 135, 56, 0.22);
}

.empty-result {
  padding: 18px;
  color: var(--muted);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(24, 33, 38, 0.05);
  border: 1px solid rgba(24, 33, 38, 0.08);
  overflow-x: auto;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
  }

  .userbox {
    align-items: flex-start;
  }

  .inline {
    flex-direction: column;
  }
}
