:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: #f5f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

.topbar {
  min-height: 72px;
  padding: 16px 20px;
  background: linear-gradient(120deg, #111b2c 0%, #17253a 58%, #15352f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(18, 32, 51, 0.16);
}

.topbar > div {
  min-width: 0;
}

.topbar a,
button {
  border: 1px solid #b7c2d0;
  background: #fff;
  color: #172b4d;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
}

.topbar a:hover,
button:hover {
  background: #edf2f7;
}

.eyebrow {
  margin: 0 0 2px;
  color: #b7c2d0;
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(260px, 0.95fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  padding: 14px;
}

.form-pane,
.history-pane {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 18px;
}

.lead {
  color: #52606d;
  line-height: 1.6;
}

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

label {
  display: grid;
  gap: 6px;
  color: #334e68;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 9px 10px;
}

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

#submitBtn {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.22);
}

#submitBtn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.status {
  min-height: 24px;
  color: #52606d;
}

.status.error {
  color: #b42318;
}

.feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.feedback-item {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 12px;
}

.feedback-meta {
  color: #66788a;
  font-size: 13px;
  margin-bottom: 6px;
}

.feedback-message {
  white-space: pre-wrap;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar .app-nav a {
    min-height: 28px !important;
    padding: 4px 7px !important;
    font-size: 12px !important;
    text-align: center;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .form-pane,
  .history-pane {
    padding: 14px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    line-height: 1.35;
  }
}
