.tw-root {
  max-width: 640px;
  margin: 24px auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.tw-loading, .tw-error {
  text-align: center;
  padding: 32px;
  color: #666;
}

.tw-header {
  margin-bottom: 16px;
}

.tw-progress {
  height: 6px;
  background: #4a67f5;
  border-radius: 3px;
  width: 0%;
  transition: width .25s ease;
}

.tw-card {
  background: #fff;
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
  min-height: 180px;
}

.tw-question {
  font-size: 18px;
  font-weight: 600;
  color: #1c2233;
  margin-bottom: 16px;
  line-height: 1.4;
}

.tw-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}

.tw-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cdd3e0;
  border-radius: 8px;
  font-size: 16px;
}

.tw-input:focus {
  outline: none;
  border-color: #4a67f5;
}

.tw-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tw-option {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #cdd3e0;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  font-size: 15px;
  transition: border-color .15s, background .15s;
}

.tw-option:hover {
  border-color: #a8b4d8;
}

.tw-option.tw-selected {
  border-color: #4a67f5;
  background: #eef1fe;
  font-weight: 600;
}

.tw-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.tw-counter {
  flex: 1;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.tw-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #4a67f5;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.tw-btn:disabled {
  background: #c6cce8;
  cursor: default;
}

.tw-btn.tw-save {
  background: #eef1fe;
  color: #4a67f5;
}

.tw-btn.tw-finish {
  background: #1fae63;
}

.tw-result {
  text-align: center;
  padding: 40px 20px;
}

.tw-result-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #fff;
}

.tw-result-icon.tw-ok { background: #1fae63; }
.tw-result-icon.tw-fail { background: #e0503f; }

.tw-result-title {
  font-size: 20px;
  font-weight: 700;
  color: #1c2233;
  margin-bottom: 6px;
}

.tw-result-score {
  font-size: 15px;
  color: #4a67f5;
  margin-bottom: 4px;
}

.tw-result-sub {
  color: #6b7280;
  margin-bottom: 16px;
}
