  *,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(180deg, #eff6ff 0%, #e2e8f0 100%);
}



h1 {
  text-align: center;
  margin: 0 0 8px;
  color: #0f172a;
}

.helper {
  text-align: center;
  color: #475569;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.toggle-row,
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-row {
  margin-bottom: 10px;
}

.toggle-btn,
.secondary-btn {
  flex: 1;
  min-width: 120px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.toggle-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.field-group {
  margin-top: 12px;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #334155;
}

input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.error {
  min-height: 1em;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #b91c1c;
}

#calcBtn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

#calcBtn:hover {
  opacity: 0.95;
}

.grid {
  display: grid;
  grid-template-columns: 2fr auto;
  gap: 20px;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.chart-card,
.summary-card,
.score-meaning {
  width: 100%;
}  

.result {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.status-pill {
  display: inline-block;
  margin: 12px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.summary-title {
  margin-top: 14px;
  font-weight: 800;
  color: #0f172a;
}

.summary-lines {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.summary-lines div {
  margin-top: 4px;
}

.strong {
  background: #dcfce7;
  color: #166534;
}

.moderate {
  background: #fef3c7;
  color: #92400e;
}

.borderline {
  background: #ffedd5;
  color: #9a3412;
}

.weak {
  background: #fee2e2;
  color: #991b1b;
}

.export-status {
  min-height: 1em;
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #15803d;
}
.disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid #64748b;
  background: #f8fafc;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: 10px;
}
.f800{
  font-weight: 800;
}
.summary-lines strong{
  font-weight: 800;
}
@media (max-width: 780px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  margin: 24px 10px 24px 10px;
  max-width: 980px;
}

.score-meaning {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.score-meaning-title {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.score-meaning-item {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
  margin-top: 4px;
}
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  input,
  button,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  button {
    margin-top: 8px;
  }

  h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .score-meaning {
    padding: 12px;
  }
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

p {
  line-height: 1.6;
}

button {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}
.disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid #64748b;
  background: #f8fafc;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: 10px;
}
@media (min-width: 769px) {
  #resultCard {
  display: block;
}

  #dscrResult,
  #statusPill {
    grid-column: 1;
  }

  .score-meaning {
    grid-column: 2;
    align-self: start;
  }
}



  #dscrResult {
    grid-column: 1;
  }

  #statusPill {
    grid-column: 1;
  }

  .score-meaning {
    grid-column: 2;
    margin-top: 0;
  }

  .score-meaning-title {
    margin-top: 0;
  }
}
#resultCard {
  display: block;
}

.summary-title {
  margin-top: 14px;
  font-weight: 800;
  color: #0f172a;
}

.summary-lines {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.summary-lines div {
  margin-top: 4px;
}
@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    font-size: 17px;
  }

  body {
    padding: 12px;
  }

  .summary-card,
  .score-meaning,
  .disclaimer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  h2, h3 {
    font-size: 1.2rem;
  }

  p, li, label, input, button, select {
    font-size: 16px;
  }

  input, button, select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  header,
  nav,
  .actions,
  button,
  .disclaimer {
    display: none !important;
  }

  .summary-card {
    box-shadow: none !important;
    border: 1px solid #000;
    width: 100%;
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

