:root {
  font-family: Arial, sans-serif;
  color: #212529;
  background: #f4f4f9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f4f4f9;
}

button, input { font: inherit; }

button {
  padding: 10px 20px;
  color: #fff;
  background: #007bff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

button:hover { background: #0056b3; }
button:disabled { opacity: .65; cursor: wait; }

.screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  width: min(100%, 420px);
  padding: 28px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
}

.card h1, .card h2 { margin-top: 0; }
.card p { line-height: 1.5; }

.choice-list, .form-fields {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.choice-list button { width: 100%; }

.divider {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
  color: #6c757d;
  font-size: .875rem;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

label {
  display: grid;
  gap: 6px;
  text-align: left;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: 400;
}

.form-error {
  min-height: 1.25em;
  margin: 14px 0 0;
  color: #b42318;
  text-align: left;
}

.subtle { color: #6c757d; font-size: .9rem; }
.link-button { padding: 0; color: #0056b3; background: transparent; text-decoration: underline; }
.link-button:hover { color: #003f82; background: transparent; }

.app-shell { min-height: 100vh; }

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px max(24px, calc((100vw - 960px) / 2));
  color: #fff;
  background: #1f3a5f;
}

.app-header a { color: #fff; text-decoration: none; }
.app-header a:hover { text-decoration: underline; }

.nav-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.nav-links button { padding: 0; background: transparent; text-decoration: underline; }
.nav-links button:hover { background: transparent; }

.welcome-content {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
  padding: 72px 0;
}

.welcome-panel {
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
}

.dashboard .card {
  width: 300px;
  min-height: 214px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.input-group { display: grid; gap: 10px; }
.response-container { min-height: 44px; margin: 10px 0; text-align: left; font-size: 14px; }
.response-container ul { padding: 0; list-style: none; }
.response-container li { margin: 5px 0; }

@media (max-width: 560px) {
  .app-header { align-items: flex-start; flex-direction: column; }
  .welcome-panel { padding: 28px; }
}
