.rtss-wrapper {
    max-width: 960px;
    margin: 0 auto 32px auto;
    padding: 24px 24px 28px 24px;
    background-color: #f3f4f6;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rtss-header {
    text-align: center;
    margin-bottom: 16px;
}

.rtss-title {
    margin: 0 0 4px 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.rtss-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.rtss-app {
    margin-top: 12px;
}

.rtss-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rtss-intro {
    text-align: left;
}

.rtss-intro-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 24px 24px 20px 24px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rtss-intro-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.rtss-intro-text {
    margin: 0 0 14px 0;
    font-size: 0.97rem;
    line-height: 1.6;
    color: #4b5563;
}

.rtss-intro-highlight {
    font-weight: 600;
    color: #1d4ed8;
}

.rtss-intro-info {
    margin: 0 0 18px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    font-size: 0.9rem;
    color: #1f2937;
}

.rtss-footer-note {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* Buttons */

.rtss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.rtss-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.rtss-btn-primary:hover {
    background-color: #1d4ed8;
}

.rtss-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.rtss-btn-primary:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
    box-shadow: none;
}

.rtss-btn-secondary {
    background-color: #e5e7eb;
    color: #111827;
}

.rtss-btn-secondary:hover {
    background-color: #d1d5db;
}

/* Survey */

.rtss-survey {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px 20px 18px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.rtss-progress {
    margin-bottom: 16px;
}

.rtss-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.rtss-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.rtss-progress-text {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.rtss-question-card {
    margin-bottom: 16px;
}

.rtss-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rtss-domain-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background-color: #eef2ff;
    color: #3730a3;
    text-transform: uppercase;
}

.rtss-step-indicator {
    font-size: 0.8rem;
    color: #9ca3af;
}

.rtss-question-text {
    font-size: 1.02rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 18px;
}

/* Slider */

.rtss-slider-wrapper {
    margin-bottom: 8px;
}

.rtss-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.rtss-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
}

/* Slider thumb styling for WebKit */
.rtss-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.8);
}

/* Slider thumb for Firefox */
.rtss-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.8);
}

.rtss-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
}

.rtss-slider-value {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: #eff6ff;
    color: #1d4ed8;
}

.rtss-validation {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #b91c1c;
}

/* Navigation */

.rtss-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

/* Summary */

.rtss-summary {
    margin-top: 4px;
    font-size: 0.95rem;
    color: #111827;
}

.rtss-summary-section + .rtss-summary-section {
    margin-top: 16px;
}

.rtss-summary-section h3 {
    font-size: 1.02rem;
    margin: 0 0 8px 0;
}

.rtss-summary-section h4 {
    font-size: 0.96rem;
    margin: 0 0 4px 0;
}

.rtss-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.rtss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rtss-table th,
.rtss-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.rtss-table th {
    font-weight: 600;
    color: #4b5563;
    background-color: #f9fafb;
}

.rtss-band {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rtss-band-strong {
    background-color: #dcfce7;
    color: #166534;
}

.rtss-band-positive {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.rtss-band-risk {
    background-color: #fef9c3;
    color: #854d0e;
}

.rtss-band-hotspot {
    background-color: #fee2e2;
    color: #b91c1c;
}

.rtss-band-missing {
    background-color: #e5e7eb;
    color: #4b5563;
}

.rtss-rec-item {
    margin-bottom: 10px;
}

.rtss-textarea {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}