:root {
  --sblt-navy: #17384f;
  --sblt-navy-dark: #0d283a;
  --sblt-gold: #d9b24c;
  --sblt-red: #b72b3a;
  --sblt-ink: #17212b;
  --sblt-muted: #687783;
  --sblt-border: #dbe3e8;
  --sblt-soft: #f5f8fa;
  --sblt-white: #ffffff;
  --sblt-success: #2f7856;
}

.sblt-shell,
.sblt-shell * { box-sizing: border-box; }

.sblt-shell {
  width: 100%;
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
  color: var(--sblt-ink);
  font-family: inherit;
}

.sblt-card {
  background: var(--sblt-white);
  border: 1px solid var(--sblt-border);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(20, 45, 62, 0.12);
  overflow: hidden;
}

.sblt-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--sblt-navy-dark), var(--sblt-navy));
  color: #fff;
}

.sblt-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
}

.sblt-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  opacity: 0.86;
}

.sblt-brand-sub {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.sblt-screen {
  display: none;
  padding: 42px 48px 46px;
}

.sblt-screen.is-active { display: block; }

.sblt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7df;
  color: #6b561d;
  border: 1px solid #ead79a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.sblt-screen h2 {
  margin: 16px 0 12px;
  color: var(--sblt-navy-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.sblt-lead {
  margin: 0 0 24px;
  color: #465661;
  font-size: 18px;
  line-height: 1.65;
}

.sblt-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.sblt-feature-grid > div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--sblt-border);
  border-radius: 14px;
  background: var(--sblt-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sblt-feature-grid strong {
  color: var(--sblt-navy-dark);
  font-size: 18px;
}

.sblt-feature-grid span {
  margin-top: 4px;
  color: var(--sblt-muted);
  font-size: 14px;
}

.sblt-note,
.sblt-small,
.sblt-field-hint {
  color: var(--sblt-muted);
  line-height: 1.55;
}

.sblt-note {
  padding: 16px 18px;
  background: #f8fafb;
  border-left: 4px solid var(--sblt-gold);
  margin: 0 0 26px;
}

.sblt-small { font-size: 12px; margin: 12px 0 0; }
.sblt-field-hint { font-size: 13px; margin: -8px 0 16px; }

.sblt-btn {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none !important;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.sblt-btn:hover { transform: translateY(-1px); }
.sblt-btn:focus-visible,
.sblt-option:focus-visible,
.sblt-link-button:focus-visible,
.sblt-form input:focus,
.sblt-form textarea:focus {
  outline: 3px solid rgba(217,178,76,.35);
  outline-offset: 2px;
}

.sblt-btn-primary {
  background: var(--sblt-red);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(183, 43, 58, .20);
}

.sblt-btn-secondary {
  background: #fff;
  color: var(--sblt-navy-dark) !important;
  border-color: var(--sblt-navy);
}

.sblt-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.sblt-progress-row {
  display: flex;
  justify-content: space-between;
  color: var(--sblt-muted);
  font-size: 13px;
  font-weight: 700;
}

.sblt-progress {
  width: 100%;
  height: 8px;
  margin: 8px 0 34px;
  border-radius: 999px;
  background: #e9eef1;
  overflow: hidden;
}

.sblt-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sblt-gold), var(--sblt-red));
  transition: width .25s ease;
}

.sblt-question-meta {
  color: var(--sblt-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sblt-question {
  font-size: clamp(24px, 3.5vw, 34px) !important;
  margin-top: 9px !important;
  white-space: pre-line;
}

.sblt-options {
  display: grid;
  gap: 11px;
  margin: 28px 0 24px;
}

.sblt-option {
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  color: var(--sblt-ink);
  background: #fff;
  border: 2px solid var(--sblt-border);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}

.sblt-option:hover {
  border-color: #aab9c3;
  transform: translateY(-1px);
}

.sblt-option.is-selected {
  border-color: var(--sblt-navy);
  background: #eef5f8;
  box-shadow: inset 0 0 0 1px var(--sblt-navy);
}

.sblt-quiz-actions { display: flex; justify-content: flex-end; }

.sblt-form { margin-top: 28px; }
.sblt-form label > span:first-child { display: block; margin-bottom: 7px; font-weight: 700; }

.sblt-form input[type="text"],
.sblt-form input[type="email"],
.sblt-form input[type="tel"],
.sblt-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bfcbd2;
  border-radius: 9px;
  background: #fff;
  color: var(--sblt-ink);
  font: inherit;
}

.sblt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 15px;
}

.sblt-writing {
  margin: 22px 0;
  padding: 15px 16px;
  border: 1px solid var(--sblt-border);
  border-radius: 10px;
  background: var(--sblt-soft);
}

.sblt-writing summary {
  cursor: pointer;
  color: var(--sblt-navy-dark);
  font-weight: 750;
}

.sblt-writing label { display: block; margin-top: 14px; }

.sblt-check {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 13px 0;
  font-size: 14px;
  line-height: 1.5;
}

.sblt-check input { margin-top: 3px; }
.sblt-check span { font-weight: 400 !important; margin: 0 !important; }
.sblt-check a { color: var(--sblt-navy); }

.sblt-form-error {
  min-height: 20px;
  margin: 12px 0;
  color: #9d1e2c;
  font-weight: 700;
  font-size: 14px;
}

.sblt-result-badge {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 19px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sblt-navy-dark), var(--sblt-navy));
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
}

.sblt-result-note {
  margin: 20px 0 26px;
  padding: 15px 17px;
  border-radius: 10px;
  background: #eef6f2;
  color: #315c48;
  line-height: 1.55;
}

.sblt-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.sblt-link-button {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sblt-muted);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 680px) {
  .sblt-shell { margin: 16px auto; padding: 0 10px; }
  .sblt-screen { padding: 30px 22px 34px; }
  .sblt-brand { padding: 14px 18px; }
  .sblt-logo { width: 52px; height: 52px; }
  .sblt-brand-sub { font-size: 18px; }
  .sblt-feature-grid { grid-template-columns: 1fr; }
  .sblt-feature-grid > div { min-height: 82px; }
  .sblt-form-grid { grid-template-columns: 1fr; }
  .sblt-result-actions .sblt-btn { width: 100%; }
  .sblt-quiz-actions .sblt-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sblt-shell * { transition: none !important; scroll-behavior: auto !important; }
}

/* v1.1 Writing task */
.sblt-writing-task {
  margin: 24px 0 18px;
  padding: 22px;
  border: 1px solid var(--sblt-border);
  border-radius: 14px;
  background: var(--sblt-soft);
}
.sblt-writing-task h3 { margin: 0 0 8px; font-size: 22px; color: var(--sblt-navy-dark); }
.sblt-writing-task ul { margin: 10px 0 18px 22px; }
.sblt-writing-task li { margin: 5px 0; }
.sblt-writing-label { display: block; margin-bottom: 8px; font-weight: 800; }
.sblt-writing-task textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #bfcbd2;
  border-radius: 10px;
  background: #fff;
  color: var(--sblt-ink);
  font: inherit;
  line-height: 1.55;
}
.sblt-writing-task textarea:focus { outline: 2px solid rgba(14,68,91,.16); border-color: var(--sblt-navy); }
.sblt-writing-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; font-size: 13px; color: var(--sblt-muted); }
.sblt-writing-footer strong { color: var(--sblt-navy-dark); white-space: nowrap; }
.sblt-writing-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .sblt-writing-task { padding: 16px; }
  .sblt-writing-actions .sblt-btn { width: 100%; text-align: center; }
  .sblt-writing-footer { align-items: flex-start; }
}
