.rdc-app {
    --rdc-bg: #f7f7fa;
    --rdc-surface: #ffffff;
    --rdc-line: #d9dde5;
    --rdc-text: #111827;
    --rdc-muted: #667085;
    --rdc-strong: #0f172a;
    --rdc-accent: #1f2937;
    --rdc-soft: #eef2f7;
    --rdc-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    color: var(--rdc-text);
    font-family: Arial, Helvetica, sans-serif;
}

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

.rdc-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.rdc-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.rdc-kicker {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rdc-muted);
}

.rdc-header h2,
.rdc-result-title,
.rdc-section-heading {
    margin: 0;
    color: var(--rdc-strong);
}

.rdc-header h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    line-height: 1.15;
}

.rdc-intro {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--rdc-muted);
}

.rdc-theme-toggle,
.rdc-btn,
.rdc-form input,
.rdc-form select,
.rdc-form textarea {
    font: inherit;
}

.rdc-theme-toggle,
.rdc-btn {
    appearance: none;
    border: 1px solid var(--rdc-line);
    border-radius: 14px;
    background: var(--rdc-surface);
    color: var(--rdc-text);
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.rdc-theme-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--rdc-shadow);
}

.rdc-form {
    margin-bottom: 30px;
}

.rdc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.rdc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.rdc-field label {
    font-weight: 700;
    color: var(--rdc-strong);
}

.rdc-field small {
    color: var(--rdc-muted);
    line-height: 1.45;
}

.rdc-form input,
.rdc-form select,
.rdc-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--rdc-line);
    border-radius: 14px;
    background: var(--rdc-surface);
    color: var(--rdc-text);
    outline: none;
}

.rdc-form input:focus,
.rdc-form select:focus,
.rdc-form textarea:focus,
.rdc-btn:focus,
.rdc-theme-toggle:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.rdc-check-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.rdc-check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rdc-check-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex: 0 0 auto;
}

.rdc-check-field label {
    font-weight: 600;
}

.rdc-field-wide {
    margin-top: 16px;
}

.rdc-error {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #efb4b4;
    border-radius: 14px;
    background: #fff4f4;
    color: #a12222;
    font-weight: 700;
}

.rdc-result {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rdc-result-title {
    font-size: clamp(1.4rem, 3.8vw, 2rem);
    margin-bottom: 8px;
}

.rdc-report-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px 0;
    border-top: 1px solid var(--rdc-line);
}

.rdc-report-hero {
    padding-top: 14px;
}

.rdc-report-label {
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 700;
    color: var(--rdc-muted);
    line-height: 1.35;
}

.rdc-report-value {
    margin-top: 8px;
    font-size: clamp(1.35rem, 5.8vw, 2.3rem);
    font-weight: 800;
    color: var(--rdc-strong);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.rdc-report-value-main {
    font-size: clamp(1.7rem, 7vw, 3rem);
}

.rdc-section-heading {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 4px solid var(--rdc-strong);
    font-size: clamp(1.22rem, 4vw, 1.7rem);
}

.rdc-report-text {
    margin: 0;
    color: var(--rdc-text);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.rdc-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
}

.rdc-btn-primary {
    background: var(--rdc-strong);
    border-color: var(--rdc-strong);
    color: #ffffff;
}

.rdc-btn-soft {
    background: transparent;
}

.rdc-btn:hover,
.rdc-theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.rdc-disclaimer {
    margin: 24px 0 0;
    color: var(--rdc-muted);
    line-height: 1.7;
    font-size: 0.96rem;
}

.rdc-dark {
    --rdc-bg: #0b1220;
    --rdc-surface: #111827;
    --rdc-line: #253048;
    --rdc-text: #e5e7eb;
    --rdc-muted: #a8b0c3;
    --rdc-strong: #f8fafc;
    --rdc-accent: #f8fafc;
    --rdc-soft: #172033;
    --rdc-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.rdc-dark .rdc-error {
    background: #351919;
    border-color: #6a3030;
    color: #ffd0d0;
}

@media (min-width: 700px) {
    .rdc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .rdc-field-wide {
        grid-column: 1 / -1;
    }

    .rdc-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .rdc-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .rdc-actions {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
