* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #1f2a44;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.app-header h1 {
  margin: 0;
  font-size: 28px;
}

.subtitle {
  margin: 6px 0 0;
  color: #5b677d;
}

.timer {
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  text-align: right;
}

.timer-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #6c778c;
  display: block;
}

#timer-display {
  font-size: 20px;
  font-weight: 600;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8dce6;
  border-radius: 10px;
  font-size: 15px;
}

.primary,
.secondary {
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
}

.primary {
  background: #2563eb;
  color: #fff;
}

.secondary {
  background: #e2e8f0;
  color: #1f2a44;
}

.criteria {
  background: #f1f5ff;
  border: 1px solid #c7d4ff;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.duration-note {
  margin: 10px 0 0;
  color: #4b5563;
}

.progress {
  margin-bottom: 20px;
}

.criteria-inline {
  margin: -8px 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
}

.progress-text {
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #edf1f7;
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: #2563eb;
  width: 0;
  transition: width 0.2s ease;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.option {
  border: 1px solid #d7dce8;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
}

.option input {
  transform: scale(1.2);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.result-box {
  background: #f0f9ff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #bae6fd;
  margin-bottom: 20px;
}

.result-score {
  font-size: 20px;
  font-weight: 600;
}

.result-status {
  font-size: 18px;
  font-weight: 600;
  color: #0f766e;
}

.error {
  margin-top: 12px;
  color: #b91c1c;
}

.hidden {
  display: none;
}

.footer {
  text-align: center;
  margin-top: 24px;
  color: #8792a7;
}
