.radioexam {
    --rx-navy: #142c45;
    --rx-ink: #1d3651;
    --rx-muted: #4c6278;
    --rx-paper: #f4f7fa;
    --rx-line: #d7e1eb;
    --rx-white: #fff;
    --rx-orange: #f59e0b;
    --rx-focus: #a45a00;
    max-width: 62rem;
    margin: 0 auto 2rem;
    color: var(--rx-ink);
    font: 400 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: anywhere;
}
.radioexam *, .radioexam *::before, .radioexam *::after { box-sizing: border-box; }
.radioexam [hidden] { display: none !important; }
.radioexam :where(h2, h3, h4, p, ul) { margin: 0; }
.radioexam :where(h2, h3, h4) { color: inherit; font-weight: 760; line-height: 1.16; }
.radioexam a { color: #215483; text-decoration: underline; text-underline-offset: .19em; }
.radioexam a:hover { color: #173852; }
.radioexam :focus-visible { outline: 3px solid var(--rx-focus); outline-offset: 3px; }
.radioexam [tabindex="-1"]:focus-visible { outline-offset: 5px; }
.radioexam .rx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 3.2rem) clamp(1rem, 5vw, 3.4rem);
    border-radius: 1.3rem 1.3rem 0 0;
    background: linear-gradient(115deg, #142c45 42%, #1c405e);
    color: var(--rx-white);
}
.radioexam .rx-hero::after {
    position: absolute;
    z-index: -1;
    right: -1.5rem;
    top: 50%;
    width: clamp(13rem, 36vw, 27rem);
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    background: linear-gradient(90deg, transparent 49.8%, #aec8e029 50%, transparent 50.2%),
        linear-gradient(0deg, transparent 49.8%, #aec8e029 50%, transparent 50.2%),
        radial-gradient(circle at center, var(--rx-orange) 0 1%, transparent 1.5%),
        repeating-radial-gradient(circle at center, transparent 0 11%, #b8d6f236 11.2% 11.5%, transparent 11.7% 16%),
        conic-gradient(from 15deg, #f59e0b20, #f59e0b02 66deg, transparent 66deg 360deg);
    mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
    content: "";
    pointer-events: none;
}
.radioexam .rx-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .8rem;
    color: #fbc76f;
    font-size: .84rem;
    font-weight: 760;
    letter-spacing: .1em;
}
.radioexam .rx-brand i {
    width: .54rem;
    height: .54rem;
    border-radius: 50%;
    background: var(--rx-orange);
    box-shadow: 0 0 0 .24rem #f59e0b32;
}
.radioexam .rx-hero h2 { color: var(--rx-white); margin: 0 0 .72rem; font-size: clamp(1.9rem, 5vw, 3.35rem); letter-spacing: -.04em; }
.radioexam .rx-hero p:last-child { max-width: 30rem; margin: 0; color: #e2ecf6; }
.radioexam .rx-nav {
    display: flex;
    gap: .2rem;
    padding: .45rem clamp(.3rem, 3vw, 1.55rem) 0;
    border: 1px solid var(--rx-line);
    border-top: 0;
    background: var(--rx-white);
}
.radioexam button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: .65rem;
    margin: 0;
    padding: .64rem .9rem;
    min-height: 44px;
    font: inherit;
    font-weight: 720;
    line-height: 1.3;
    cursor: pointer;
}
.radioexam button:disabled { cursor: default; opacity: .56; }
.radioexam .rx-nav button {
    border: 0;
    border-radius: .45rem .45rem 0 0;
    border-bottom: .2rem solid transparent;
    padding: .65rem clamp(.35rem, 2vw, 1.15rem);
    background: transparent;
    color: var(--rx-muted);
    font-size: .94rem;
}
.radioexam .rx-nav button:hover { background: var(--rx-paper); color: var(--rx-navy); }
.radioexam .rx-nav [aria-current="true"] { border-bottom-color: var(--rx-orange); color: var(--rx-navy); }
.radioexam .rx-main {
    display: grid;
    gap: .95rem;
    min-width: 0;
    padding: clamp(.9rem, 3.2vw, 2rem);
    border: 1px solid var(--rx-line);
    border-top: 0;
    background: var(--rx-paper);
}
.radioexam .rx-intro h3 { margin-bottom: .3rem; font-size: clamp(1.37rem, 3vw, 1.8rem); letter-spacing: -.025em; }
.radioexam .rx-intro p, .radioexam .rx-setup-summary { color: var(--rx-muted); }
.radioexam .rx-panel { padding: clamp(.85rem, 2.5vw, 1.55rem); border: 1px solid var(--rx-line); border-radius: .9rem; background: var(--rx-white); }
.radioexam .rx-setup, .radioexam .rx-fields { display: grid; gap: 1rem; }
.radioexam .rx-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.radioexam .rx-fields label { display: grid; align-content: start; gap: .35rem; font-weight: 690; min-width: 0; }
.radioexam select {
    width: 100%;
    min-height: 46px;
    padding: .55rem;
    border: 1px solid #9db0c3;
    border-radius: .55rem;
    background: var(--rx-white);
    color: var(--rx-ink);
    font: inherit;
    font-weight: 400;
}
.radioexam .rx-options { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
.radioexam .rx-options label { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.radioexam input:is([type="checkbox"], [type="radio"]) {
    width: 1.08em;
    height: 1.08em;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #234c72;
}
.radioexam .rx-exam-options p { color: var(--rx-muted); font-size: .88rem; }
.radioexam .rx-exam-plan { border-left: .22rem solid var(--rx-orange); border-radius: .25rem; background: #fff6e6; padding: .65rem .9rem; }
.radioexam .rx-exam-plan div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; }
.radioexam .rx-setup-footer { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
.radioexam .rx-setup-summary { max-width: 36ch; }
.radioexam .rx-primary { background: var(--rx-orange); color: var(--rx-navy); }
.radioexam .rx-primary:hover:enabled { background: #ffb332; color: var(--rx-navy); }
.radioexam .rx-secondary { border-color: #aabccc; background: var(--rx-white); color: var(--rx-navy); }
.radioexam .rx-secondary:hover:enabled { border-color: #51708d; background: #eaf2f9; color: var(--rx-navy); }
.radioexam .rx-text-button {
    justify-self: start;
    border: 0;
    padding: .55rem .2rem;
    background: transparent;
    color: #305778;
    text-decoration: underline;
    text-underline-offset: .19em;
}
.radioexam .rx-text-button:hover:enabled { color: var(--rx-navy); background: #eaf2f9; }
.radioexam .rx-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem 1rem;
    padding: .85rem clamp(.9rem, 3.2vw, 2rem);
    border: 1px solid var(--rx-line);
    border-top: 0;
    border-radius: 0 0 1.15rem 1.15rem;
    background: var(--rx-white);
    color: var(--rx-muted);
    font-size: .84rem;
}
.radioexam .rx-footer p { flex: 1 1 26rem; }
.radioexam .rx-session-head, .radioexam .rx-meter-label { display: flex; justify-content: space-between; align-items: center; gap: .4rem .7rem; }
.radioexam .rx-meter-label { flex-wrap: wrap; }
.radioexam .rx-session-title { font-weight: 740; }
.radioexam .rx-label, .radioexam .rx-topic, .radioexam .rx-meter-label { color: var(--rx-muted); font-size: .84rem; font-weight: 660; }
.radioexam progress {
    display: block;
    width: 100%;
    height: .45rem;
    margin: -.58rem 0 0;
    appearance: none;
    border: 0;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--rx-line);
    accent-color: #bc7007;
}
.radioexam progress::-webkit-progress-bar { background: var(--rx-line); }
.radioexam progress::-webkit-progress-value { background: #bc7007; border-radius: 2rem; }
.radioexam progress::-moz-progress-bar { background: #bc7007; border-radius: 2rem; }
.radioexam .rx-timer {
    display: grid;
    min-width: 6.15rem;
    padding: .28rem .45rem;
    border: 1px solid var(--rx-line);
    border-radius: .6rem;
    background: var(--rx-white);
    text-align: center;
    font-size: .73rem;
    line-height: 1.35;
    white-space: nowrap;
}
.radioexam .rx-timer output { color: var(--rx-navy); font-variant-numeric: tabular-nums; font-size: 1.12rem; font-weight: 760; }
.radioexam .rx-timer.rx-urgent, .radioexam .rx-timer.rx-urgent output { border-color: #dba99c; background: #fff1eb; color: #8d2e1b; }
.radioexam .rx-question fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.radioexam .rx-question h3 { margin: .3rem 0 1rem; font-size: clamp(1.25rem, 2.5vw, 1.78rem); white-space: pre-line; }
.radioexam .rx-question img { display: block; max-width: 100%; height: auto; max-height: 17rem; object-fit: contain; margin-bottom: .85rem; }
.radioexam .rx-answers { display: grid; gap: .45rem; }
.radioexam .rx-answer {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .44rem .75rem;
    min-height: 47px;
    border: 1px solid var(--rx-line);
    border-radius: .6rem;
    background: #f9fbfd;
    color: var(--rx-ink);
    cursor: pointer;
}
.radioexam .rx-answer:hover, .radioexam .rx-answer:has(input:checked) { border-color: #728ba3; background: #eff6fd; }
.radioexam .rx-answer:focus-within { outline: 2px solid var(--rx-focus); outline-offset: 2px; }
.radioexam .rx-answer:has(input:disabled) { cursor: default; }
.radioexam .rx-letter {
    flex: 0 0 1.65rem;
    border-radius: .34rem;
    background: #eaf0f6;
    color: #35536f;
    text-align: center;
    font-size: .78rem;
    line-height: 1.65rem;
    font-weight: 740;
}
.radioexam .rx-answer.rx-right { border-color: #78a994; background: #eaf6ef; }
.radioexam .rx-answer.rx-wrong { border-color: #d99e90; background: #fff1ec; }
.radioexam .rx-validate, .radioexam .rx-feedback { margin-top: .85rem; }
.radioexam .rx-feedback {
    padding: .72rem .88rem;
    border-left: .25rem solid #ad593f;
    border-radius: .35rem;
    background: #fff3ec;
}
.radioexam .rx-feedback-right { border-color: #31775c; background: #edf8f1; }
.radioexam .rx-feedback h4 { font-size: 1.03rem; }
.radioexam .rx-feedback p { margin-top: .23rem; white-space: pre-line; }
.radioexam .rx-source { font-size: .83rem; }
.radioexam .rx-controls, .radioexam .rx-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.radioexam .rx-result-actions { justify-content: start; margin-top: .8rem; }
.radioexam .rx-jump { display: flex; flex-wrap: wrap; gap: .35rem; }
.radioexam .rx-jump button { min-width: 44px; padding: .35rem; border-color: #acbdcd; background: var(--rx-white); color: var(--rx-navy); }
.radioexam .rx-jump button:hover { background: #e1edf8; }
.radioexam .rx-jump .rx-answered-question { background: #dcebf8; }
.radioexam .rx-jump button[aria-current] { border-color: #8f5204; box-shadow: inset 0 -.19rem var(--rx-orange); }
.radioexam [data-act="finish"].rx-primary { justify-self: start; }
.radioexam .rx-result { display: grid; gap: .45rem; }
.radioexam .rx-result h4, .radioexam .rx-history h4 { font-size: 1.1rem; }
.radioexam .rx-corrections { display: grid; gap: .45rem; }
.radioexam details { padding: .65rem .75rem; border: 1px solid var(--rx-line); border-radius: .55rem; background: var(--rx-white); }
.radioexam summary { padding-block: .35rem; cursor: pointer; font-weight: 670; }
.radioexam .rx-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem; }
.radioexam .rx-stat { display: grid; gap: .25rem; align-content: start; }
.radioexam .rx-stat strong { font-size: 1.65rem; }
.radioexam .rx-history > * + * { margin-top: .6rem; }
.radioexam .rx-history ul { padding-left: 1.2rem; list-style: disc; }
.radioexam .rx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
    .radioexam .rx-nav button { flex: 1 1 0; min-width: 0; font-size: clamp(.76rem, 3vw, .91rem); }
    .radioexam .rx-hero::after { opacity: .5; }
    .radioexam .rx-hero-break { display: none; }
}
@media (max-width: 400px) {
    .radioexam .rx-controls button, .radioexam .rx-setup-footer button { flex: 1 1 100%; }
    .radioexam .rx-hero p:last-child { font-size: .94rem; }
    .radioexam .rx-answer { padding-inline: .5rem; gap: .42rem; }
}
.radioexam .rx-dialog {
    width: min(28rem, calc(100% - 2rem));
    padding: 1.4rem;
    border: 1px solid var(--rx-line);
    border-radius: .9rem;
    background: var(--rx-white);
    color: var(--rx-ink);
}
.radioexam .rx-dialog::backdrop { background: #142c4599; }
.radioexam .rx-dialog form > div { display: flex; flex-wrap: wrap; justify-content: end; gap: .55rem; margin-top: 1rem; }

@media (max-width: 350px) {
    .radioexam .rx-nav button { padding-inline: .18rem; font-size: .72rem; overflow-wrap: normal; }
    .radioexam .rx-hero h2 { font-size: 1.65rem; }
}
