#dwf-rdp-root {
    --dwf-rdp-bg: #101216;
    --dwf-rdp-bg-2: #171b20;
    --dwf-rdp-panel: #15191f;
    --dwf-rdp-panel-soft: #0d1014;
    --dwf-rdp-border: #2c333d;
    --dwf-rdp-border-strong: #53606d;
    --dwf-rdp-text: #f4fbff;
    --dwf-rdp-muted: #c7d3dc;
    --dwf-rdp-muted-strong: #dfe7ee;
    --dwf-rdp-accent: #00d1b2;
    --dwf-rdp-accent-2: #8cecff;
    --dwf-rdp-warning-bg: #2a1b1b;
    --dwf-rdp-warning-border: #9b4545;
    --dwf-rdp-warning-text: #ffc6c6;
    --dwf-rdp-font-scale: 1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 980px;
    margin: 0 auto;
    color: var(--dwf-rdp-text);
    font-size: calc(16px * var(--dwf-rdp-font-scale));
    line-height: 1.5;
}

#dwf-rdp-root.dwf-rdp-theme-deep-sea {
    --dwf-rdp-bg: #031826;
    --dwf-rdp-bg-2: #08283b;
    --dwf-rdp-panel: #092334;
    --dwf-rdp-panel-soft: #04131e;
    --dwf-rdp-border: #27546a;
    --dwf-rdp-border-strong: #66a8bf;
    --dwf-rdp-text: #f4fbff;
    --dwf-rdp-muted: #cbe6f0;
    --dwf-rdp-muted-strong: #e7f8ff;
    --dwf-rdp-accent: #39d3ff;
    --dwf-rdp-accent-2: #b1f4ff;
}

#dwf-rdp-root.dwf-rdp-theme-high-contrast {
    --dwf-rdp-bg: #000000;
    --dwf-rdp-bg-2: #000000;
    --dwf-rdp-panel: #000000;
    --dwf-rdp-panel-soft: #000000;
    --dwf-rdp-border: #ffffff;
    --dwf-rdp-border-strong: #ffffff;
    --dwf-rdp-text: #ffffff;
    --dwf-rdp-muted: #ffffff;
    --dwf-rdp-muted-strong: #ffffff;
    --dwf-rdp-accent: #00ffff;
    --dwf-rdp-accent-2: #ffffff;
    --dwf-rdp-warning-bg: #000000;
    --dwf-rdp-warning-border: #ff4444;
    --dwf-rdp-warning-text: #ffffff;
}

#dwf-rdp-root.dwf-rdp-text-small { --dwf-rdp-font-scale: 0.94; }
#dwf-rdp-root.dwf-rdp-text-standard { --dwf-rdp-font-scale: 1; }
#dwf-rdp-root.dwf-rdp-text-large { --dwf-rdp-font-scale: 1.13; }

#dwf-rdp-root * {
    box-sizing: border-box;
}

.dwf-rdp-shell {
    background: #101216;
    border: 1px solid #2b3138;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dwf-loading,
.dwf-rdp-panel {
    background: #171b20;
    border: 1px solid #303842;
    border-radius: 10px;
    padding: 20px;
}

.dwf-loading {
    text-align: center;
}

.dwf-loading h2 {
    margin: 0 0 8px;
    color: #00d1b2;
    font-size: 1.35rem;
}

.dwf-loading p,
.dwf-rdp-subtitle,
.dwf-rdp-muted {
    color: #a9b3bd;
}

.dwf-rdp-header {
    margin-bottom: 18px;
}

.dwf-rdp-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.2;
}

.dwf-rdp-subtitle {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.dwf-rdp-nav,
.dwf-rdp-input-row,
.dwf-rdp-statbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dwf-rdp-nav {
    margin: 18px 0;
}

.dwf-rdp-difficulty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.dwf-rdp-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    color: #dfe7ee;
    font-size: 0.9rem;
    font-weight: 700;
}

.dwf-rdp-checkbox input {
    width: auto;
}

.dwf-rdp-checkbox.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dwf-rdp-statbar {
    margin: 12px 0;
}

.dwf-rdp-button {
    appearance: none;
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    background: #252b33;
    color: #f5f5f5;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

.dwf-rdp-button:hover {
    background: #313944;
    transform: translateY(-1px);
}

.dwf-rdp-button:active {
    transform: translateY(0);
}

.dwf-rdp-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.dwf-rdp-button.is-active {
    background: #00d1b2;
    color: #07110f;
}

.dwf-rdp-button.is-secondary {
    background: #3273dc;
    color: #fff;
}

.dwf-rdp-button.is-warning {
    background: #ffdd57;
    color: #171300;
}

.dwf-rdp-button.is-danger {
    background: #ff6b81;
    color: #fff;
}

.dwf-rdp-grid,
.dwf-rdp-single-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.dwf-rdp-panel {
    background: #15191f;
    border-color: #2c333d;
    padding: 16px;
}

.dwf-rdp-panel-title {
    margin: 0 0 10px;
    color: #00d1b2;
    font-size: 1.05rem;
}

.dwf-rdp-question {
    margin: 0 0 14px;
    color: #f2f5f7;
    line-height: 1.5;
}

.dwf-rdp-small {
    font-size: 0.86rem;
}

.dwf-rdp-input-row {
    align-items: center;
}

.dwf-rdp-input {
    width: auto;
    max-width: 10rem;
    border: 1px solid #46515d;
    border-radius: 7px;
    background: #0d1014;
    color: #fff;
    padding: 10px;
    font-size: 1rem;
}

.dwf-rdp-input[type="number"] {
    width: 7rem;
}

.dwf-rdp-input[type="text"] {
    width: 4.5rem;
    max-width: 4.5rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

#dwf-difficulty,
#dwf-unit {
    width: auto;
    min-width: 8rem;
    max-width: 10rem;
}

#dwf-load-code,
#dwf-public-load-code {
    width: min(100%, 18rem);
    max-width: 18rem;
    text-align: left;
}

.dwf-rdp-input:focus {
    outline: 2px solid rgba(0, 209, 178, 0.35);
    border-color: #00d1b2;
}

.dwf-rdp-auto-bad {
    border-color: #ff4d5e !important;
    color: #ff4d5e !important;
}

.dwf-rdp-auto-good {
    border-color: #48c774 !important;
    color: #48c774 !important;
}

.dwf-rdp-calc-note {
    margin-top: 5px;
    color: #ff6b81;
}

.dwf-rdp-feedback {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.45;
    font-weight: 700;
}

.dwf-rdp-feedback.is-good {
    background: rgba(72, 199, 116, 0.12);
    border: 1px solid rgba(72, 199, 116, 0.35);
    color: #72e39b;
}

.dwf-rdp-feedback.is-bad {
    background: rgba(255, 107, 129, 0.12);
    border: 1px solid rgba(255, 107, 129, 0.35);
    color: #ff9aac;
}

.dwf-rdp-feedback.is-info {
    background: rgba(50, 115, 220, 0.12);
    border: 1px solid rgba(50, 115, 220, 0.35);
    color: #9fc1ff;
}

.dwf-rdp-stat {
    background: #0d1014;
    border: 1px solid #2c333d;
    border-radius: 8px;
    padding: 9px 11px;
    color: #dfe7ee;
    font-size: 0.9rem;
}

.dwf-rdp-stat strong {
    color: #fff;
}

.dwf-rdp-code-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.dwf-rdp-code-loader {
    margin: 10px 0 16px;
    padding: 12px;
    border: 1px solid var(--dwf-rdp-border);
    border-radius: 10px;
    background: var(--dwf-rdp-panel-soft);
    color: var(--dwf-rdp-text);
}

.dwf-rdp-code-loader label {
    display: block;
    margin-bottom: 8px;
    color: var(--dwf-rdp-muted-strong);
}

.dwf-rdp-code-loader-feedback {
    min-height: 1.3em;
    margin-top: 8px;
    color: var(--dwf-rdp-warning-text);
    font-weight: 800;
}

.dwf-rdp-rat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.dwf-rdp-field label {
    display: block;
    margin-bottom: 5px;
    color: #a9b3bd;
    font-size: 0.82rem;
    font-weight: 800;
}

.dwf-rdp-warning {
    margin-top: 18px;
    padding: 13px;
    background: #2a1b1b;
    border: 1px solid #6a3030;
    color: #ffb0b0;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.dwf-rdp-legal-panel {
    border-color: #53606d;
}

.dwf-rdp-danger-panel {
    background: #241616;
    border-color: #7a3030;
}

.dwf-rdp-danger-panel .dwf-rdp-panel-title {
    color: #ff6b81;
}

/* Dive profile diagrams */

.dwf-rat-profile-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
}

.dwf-rat-profile-diagram {
    width: 100%;
    min-width: 620px;
    color: #f4f7fa;
    display: block;
}

.dwf-rat-profile-letter {
    fill: #fff;
    font-size: 20px;
    font-weight: 900;
}

.dwf-rat-profile-small {
    fill: #dfe7ee;
    font-size: 13px;
}

.dwf-rat-profile-value,
.dwf-rat-profile-fill {
    fill: #00d1b2;
    font-weight: 900;
}

.dwf-rat-profile-value {
    font-size: 22px;
}

.dwf-rat-profile-fill {
    font-size: 14px;
}

.dwf-rat-profile-warning {
    fill: #ffdd57;
    font-size: 18px;
    font-weight: 900;
}

.dwf-rat-equation {
    margin: 12px auto 0;
    padding: 12px;
    border: 1px solid #53606d;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    color: #f4f7fa;
    background: rgba(255, 255, 255, 0.035);
}

.dwf-rat-equation strong {
    color: #00d1b2;
    font-size: 1.35rem;
}

.dwf-rat-equation strong.is-missing {
    color: #ff4d5e;
}

/* Footer and Mission Control */

.dwf-rdp-footer-meta {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #2c333d;
    border-radius: 8px;
    background: #0d1014;
    color: #a9b3bd;
    font-size: 0.82rem;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.dwf-rdp-footer-meta a {
    color: #00d1b2;
    font-weight: 800;
    text-decoration: none;
}

.dwf-rdp-footer-meta a:hover {
    text-decoration: underline;
}

.dwf-dev-console {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.18);
}

.dwf-dev-console h3,
.dwf-dev-console h4 {
    margin-top: 0;
}

.dwf-mission-section {
    margin-top: 1rem;
}

.dwf-dev-console-trigger {
    cursor: pointer;
}

.dwf-dev-console-trigger:hover {
    text-decoration: underline;
}

/* Test suite */

.dwf-rdp-test-suite {
    margin: 20px auto;
    max-width: 1100px;
    padding: 18px;
    background: #05070a;
    color: #dfe7ee;
    border: 2px solid #00d1b2;
    border-radius: 10px;
    font-family: system-ui, sans-serif;
    z-index: 99999;
}

.dwf-rdp-test-suite h2 {
    margin-top: 0;
    color: #00d1b2;
}

.dwf-rdp-test-suite pre {
    max-height: 520px;
    overflow: auto;
    background: #101216;
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
}

/* Responsive */

@media (min-width: 760px) {
    .dwf-rdp-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

@media (max-width: 640px) {
    .dwf-rdp-shell {
        padding: 14px;
        border-radius: 8px;
    }

    .dwf-rdp-title {
        font-size: 1.25rem;
    }

    .dwf-rdp-nav {
        flex-direction: column;
    }

    .dwf-rdp-button {
        width: 100%;
    }

    .dwf-rdp-rat-grid {
        grid-template-columns: 1fr;
    }

    #dwf-load-code,
    #dwf-public-load-code {
        max-width: 100%;
    }
    
    .dwf-rdp-input[type="number"] {
        width: 7rem;
    }
    
    .dwf-rdp-input[type="text"]:not(#dwf-load-code):not(#dwf-public-load-code) {
        width: 4.5rem;
        max-width: 4.5rem;
    }   
}

@media print {
    body * {
        display: none !important;
    }

    #dwf-rdp-root,
    #dwf-rdp-root .dwf-worksheet,
    #dwf-rdp-root .dwf-worksheet * {
        display: revert !important;
        visibility: visible !important;
    }

    #dwf-rdp-root {
        max-width: none !important;
        color: #000 !important;
    }

    .dwf-worksheet {
        background: #fff !important;
        color: #000 !important;
        padding: 0.35in;
        font-family: Georgia, "Times New Roman", serif;
    }

    .dwf-worksheet-header {
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 18px;
        text-align: center;
    }

    .dwf-worksheet-brand {
        font-size: 22px;
        font-weight: 900;
    }

    .dwf-worksheet-title {
        font-size: 18px;
        font-weight: 700;
    }

    .dwf-worksheet-url {
        font-size: 12px;
    }

    .dwf-worksheet-meta {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .dwf-worksheet-question {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.45;
    }

    .dwf-worksheet-footer {
        border-top: 1px solid #000;
        margin-top: 22px;
        padding-top: 8px;
        font-size: 11px;
        text-align: center;
    }
}

.dwf-print-diagram {
    margin: 8px 0 10px;
    padding: 6px;
    border: 1px solid #999;
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff;
}

.dwf-print-diagram svg {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
}
.dwf-rdp-difficulty-row {
    gap: 8px 14px;
}

.dwf-rdp-difficulty-row label {
    margin: 0;
}

#dwf-difficulty,
#dwf-unit {
    width: auto;
    min-width: 8rem;
    max-width: 10rem;
}

.dwf-rdp-input-row .dwf-rdp-input,
.dwf-rat-input-row .dwf-rdp-input {
    width: auto;
    max-width: 8rem;
}


/* DWF Labs display shell and contrast refresh */
#dwf-rdp-root .dwf-rdp-shell {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 90% 0%, rgba(0, 209, 178, 0.13), transparent 34%), linear-gradient(180deg, var(--dwf-rdp-bg-2), var(--dwf-rdp-bg));
    border-color: var(--dwf-rdp-border-strong);
    color: var(--dwf-rdp-text);
}

#dwf-rdp-root .dwf-rdp-shell > *:not(.dwf-rdp-bubble-field) {
    position: relative;
    z-index: 2;
}

#dwf-rdp-root .dwf-rdp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

#dwf-rdp-root .dwf-rdp-header-copy {
    min-width: 0;
}

#dwf-rdp-root .dwf-rdp-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 220px;
}

#dwf-rdp-root .dwf-rdp-title,
#dwf-rdp-root .dwf-rdp-panel-title,
#dwf-rdp-root .dwf-rdp-card h2,
#dwf-rdp-root .dwf-dev-console h3,
#dwf-rdp-root .dwf-dev-console h4 {
    text-shadow: none !important;
    opacity: 1 !important;
}

#dwf-rdp-root .dwf-rdp-title {
    color: var(--dwf-rdp-text) !important;
    -webkit-text-fill-color: var(--dwf-rdp-text) !important;
    font-size: calc(1.5rem * var(--dwf-rdp-font-scale));
}

#dwf-rdp-root .dwf-rdp-subtitle,
#dwf-rdp-root .dwf-rdp-muted {
    color: var(--dwf-rdp-muted) !important;
    opacity: 1 !important;
}

#dwf-rdp-root .dwf-rdp-panel,
#dwf-rdp-root .dwf-loading {
    background: color-mix(in srgb, var(--dwf-rdp-panel) 94%, white 6%);
    border-color: var(--dwf-rdp-border);
    color: var(--dwf-rdp-text);
}

#dwf-rdp-root .dwf-rdp-panel-title,
#dwf-rdp-root .dwf-rdp-card h2 {
    color: var(--dwf-rdp-accent) !important;
    -webkit-text-fill-color: var(--dwf-rdp-accent) !important;
    font-size: calc(1.05rem * var(--dwf-rdp-font-scale));
}

#dwf-rdp-root .dwf-rdp-question,
#dwf-rdp-root .dwf-rdp-stat,
#dwf-rdp-root .dwf-rat-equation,
#dwf-rdp-root .dwf-rdp-checkbox {
    color: var(--dwf-rdp-text) !important;
}

#dwf-rdp-root .dwf-rdp-difficulty-row label,
#dwf-rdp-root .dwf-rdp-difficulty-row label strong,
#dwf-rdp-root .dwf-rdp-field label,
#dwf-rdp-root .dwf-rdp-field label strong {
    color: var(--dwf-rdp-text) !important;
    -webkit-text-fill-color: var(--dwf-rdp-text) !important;
    opacity: 1 !important;
    filter: none !important;
}

#dwf-rdp-root .dwf-rdp-checkbox.is-disabled {
    opacity: 0.72;
}

#dwf-rdp-root .dwf-rdp-stat,
#dwf-rdp-root .dwf-rdp-input,
#dwf-rdp-root .dwf-rdp-footer-meta {
    background: var(--dwf-rdp-panel-soft);
    border-color: var(--dwf-rdp-border);
    color: var(--dwf-rdp-text);
}

#dwf-rdp-root .dwf-rdp-stat strong,
#dwf-rdp-root .dwf-rdp-footer-meta strong {
    color: var(--dwf-rdp-text) !important;
}

#dwf-rdp-root .dwf-rdp-footer-meta,
#dwf-rdp-root .dwf-rdp-footer-meta span,
#dwf-rdp-root .dwf-rdp-version-text {
    color: var(--dwf-rdp-muted) !important;
}

#dwf-rdp-root .dwf-rdp-footer-meta a {
    color: var(--dwf-rdp-accent) !important;
}

#dwf-rdp-root .dwf-rdp-warning {
    background: var(--dwf-rdp-warning-bg);
    border-color: var(--dwf-rdp-warning-border);
    color: var(--dwf-rdp-warning-text);
}

#dwf-rdp-root .dwf-rdp-icon-button,
#dwf-rdp-root .dwf-rdp-mini-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: var(--dwf-rdp-text);
    background: rgba(255, 255, 255, 0.1);
    padding: 9px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease;
}

#dwf-rdp-root .dwf-rdp-mini-button {
    border-radius: 7px;
    padding: 4px 8px;
    margin-left: 6px;
}

#dwf-rdp-root .dwf-rdp-icon-button:hover,
#dwf-rdp-root .dwf-rdp-icon-button:focus-visible,
#dwf-rdp-root .dwf-rdp-mini-button:hover,
#dwf-rdp-root .dwf-rdp-mini-button:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

#dwf-rdp-root .dwf-rdp-modal-backdrop {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
}

#dwf-rdp-root .dwf-rdp-modal-backdrop[hidden] {
    display: none;
}

#dwf-rdp-root .dwf-rdp-modal {
    position: relative;
    width: min(720px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    border-radius: 22px;
    padding: 26px;
    background: #f7fdff;
    color: #062333;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

#dwf-rdp-root .dwf-rdp-modal h3 {
    margin: 0 0 12px;
    color: #062333 !important;
    -webkit-text-fill-color: #062333 !important;
    font-size: 1.7rem;
    line-height: 1.15;
    text-shadow: none !important;
}

#dwf-rdp-root .dwf-rdp-modal p,
#dwf-rdp-root .dwf-rdp-modal li,
#dwf-rdp-root .dwf-rdp-modal legend {
    color: #062333;
}

#dwf-rdp-root .dwf-rdp-modal ul {
    margin: 0 0 16px;
    padding-left: 1.2em;
}

#dwf-rdp-root .dwf-rdp-modal li {
    margin-bottom: 8px;
}

#dwf-rdp-root .dwf-rdp-modal-kicker {
    margin: 0 0 6px;
    color: #075c75 !important;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

#dwf-rdp-root .dwf-rdp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(6, 35, 51, 0.28);
    background: #ffffff;
    color: #062333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#dwf-rdp-root .dwf-rdp-setting-group {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

#dwf-rdp-root .dwf-rdp-setting-group legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

#dwf-rdp-root .dwf-rdp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#dwf-rdp-root .dwf-rdp-pill-row button {
    border: 1px solid rgba(6, 35, 51, 0.22);
    border-radius: 999px;
    background: rgba(0, 166, 200, 0.11);
    color: #062333;
    padding: 10px 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#dwf-rdp-root .dwf-rdp-pill-row button[aria-pressed="true"] {
    background: #007c99;
    color: #ffffff;
    border-color: #007c99;
}

#dwf-rdp-root .dwf-rdp-settings-note {
    color: #315c6c !important;
    font-size: 0.95em;
}

#dwf-rdp-root .dwf-rdp-bubble-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

#dwf-rdp-root .dwf-rdp-bubble-field span {
    position: absolute;
    bottom: -80px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.33);
    background: rgba(255, 255, 255, 0.07);
    animation: dwf-rdp-bubble 14s linear infinite;
}

#dwf-rdp-root .dwf-rdp-bubble-field span:nth-child(1) { left: 8%; animation-duration: 13s; }
#dwf-rdp-root .dwf-rdp-bubble-field span:nth-child(2) { left: 21%; width: 16px; height: 16px; animation-duration: 10s; animation-delay: -3s; }
#dwf-rdp-root .dwf-rdp-bubble-field span:nth-child(3) { left: 44%; width: 34px; height: 34px; animation-duration: 16s; animation-delay: -6s; }
#dwf-rdp-root .dwf-rdp-bubble-field span:nth-child(4) { left: 63%; width: 20px; height: 20px; animation-duration: 11s; animation-delay: -2s; }
#dwf-rdp-root .dwf-rdp-bubble-field span:nth-child(5) { left: 80%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: -8s; }
#dwf-rdp-root .dwf-rdp-bubble-field span:nth-child(6) { left: 92%; width: 14px; height: 14px; animation-duration: 9s; animation-delay: -1s; }

#dwf-rdp-root.dwf-rdp-bubbles-off .dwf-rdp-bubble-field,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-bubble-field {
    display: none;
}

@keyframes dwf-rdp-bubble {
    0% { transform: translateY(0) scale(0.75); opacity: 0; }
    12% { opacity: 0.55; }
    90% { opacity: 0.28; }
    100% { transform: translateY(-1080px) scale(1.12); opacity: 0; }
}

#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-shell,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-panel,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-loading,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-stat,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-footer-meta,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rat-equation {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-button.is-active,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-button.is-secondary,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-button.is-warning {
    background: #ffff00 !important;
    color: #000000 !important;
}

#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-button,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-icon-button,
#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-mini-button {
    border: 2px solid #ffffff !important;
}

#dwf-rdp-root.dwf-rdp-theme-high-contrast .dwf-rdp-input {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

#dwf-rdp-root.dwf-rdp-text-small .dwf-rdp-shell {
    font-size: 0.94em;
}

#dwf-rdp-root.dwf-rdp-text-large .dwf-rdp-shell {
    font-size: 1.13em;
}

#dwf-rdp-root .dwf-rdp-button,
#dwf-rdp-root .dwf-rdp-input,
#dwf-rdp-root .dwf-rdp-question,
#dwf-rdp-root .dwf-rdp-subtitle,
#dwf-rdp-root .dwf-rdp-stat,
#dwf-rdp-root .dwf-rdp-checkbox,
#dwf-rdp-root .dwf-rdp-footer-meta {
    font-size: calc(1em * var(--dwf-rdp-font-scale));
}

@media (max-width: 700px) {
    #dwf-rdp-root .dwf-rdp-header {
        flex-direction: column;
    }

    #dwf-rdp-root .dwf-rdp-header-actions {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }

    #dwf-rdp-root .dwf-rdp-icon-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dwf-rdp-root .dwf-rdp-bubble-field {
        display: none;
    }

    #dwf-rdp-root *,
    #dwf-rdp-root *::before,
    #dwf-rdp-root *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Core 1.3 shared-shell integration. */
#dwf-rdp-root .dwf-rdp-fallback-eyebrow {
    margin: 0 0 6px;
    color: var(--dwf-rdp-accent) !important;
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#dwf-rdp-root[data-dwf-core-mode="1"] {
    max-width: none;
    margin: 0;
}

#dwf-rdp-root[data-dwf-core-mode="1"] .dwf-rdp-shell {
    overflow: visible;
    padding: 0;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
