:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #1f2937;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.subtitle {
  margin-top: -8px;
  margin-bottom: 24px;
  color: #4b5563;
}

.card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

h2 {
  margin-top: 0;
}

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

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea,
button {
  border: 1px solid #c5cfdf;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.95rem;
}

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

button {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1e40af;
}

button.secondary {
  background: #fff;
  color: #1f2937;
  border-color: #c5cfdf;
}

button.secondary:hover {
  background: #f3f4f6;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.session-meta {
  margin: 0;
}

.guided-home-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #f8faff;
}

.guided-home-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.guided-home-card p {
  margin: 0 0 12px;
  color: #334155;
}

details {
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
}

dl {
  margin: 0 0 12px;
}

#result div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

dt {
  font-weight: 600;
}

.dashboard-note {
  margin-top: 0;
  color: #334155;
}

.dashboard-data {
  margin: 0 0 14px;
}

.dashboard-data div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-status-card {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f8faff;
}

.dashboard-status-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.dashboard-status-card p {
  margin: 0 0 10px;
  color: #334155;
}

.dashboard-human-metric {
  margin: 0 0 8px;
  color: #1f2937;
}

.dashboard-human-metric strong {
  color: #0f172a;
}

.technical-details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.technical-details summary {
  font-size: 0.88rem;
  color: #64748b;
}

#dashboard-main-cta-action {
  margin-bottom: 10px;
}

.dashboard-placeholder-note {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

.dashboard-inline-card {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: #ffffff;
}

.dashboard-inline-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.dashboard-inline-card p {
  margin: 0 0 10px;
}

.dashboard-inline-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: #1f2937;
}

.dashboard-mini-form {
  margin-bottom: 12px;
}

.dashboard-mini-form .dashboard-inline-title {
  margin-bottom: 4px;
}

.dashboard-mini-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.form-validation-errors {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #991b1b;
  font-size: 0.88rem;
}

.input-invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.error {
  border-color: #ef4444;
  color: #991b1b;
  background: #fef2f2;
}

.hidden {
  display: none;
}
