.com-testquestions {
    /* Palette and typography of templates/plociennik/css/template.css 1.0.15. */
    --tq-blue: #4d88cf;
    --tq-link: #377fd0;
    --tq-border: #d9dfe5;
    --tq-ink: #243343;
    --tq-action: #28639e;
    --tq-pale: #edf4fc;
    --tq-shadow: 0 3px 12px rgb(23 45 71 / 6%);
    color: var(--tq-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.48;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.com-testquestions .testquestion {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.com-testquestions .timer-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: auto;
}

.com-testquestions #test-timer-container {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 1050;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.com-testquestions.has-ssh-terminal {
    --test-ssh-height: 18.5rem;
    --test-ssh-visible-height: min(var(--test-ssh-height), calc(100dvh - 2rem));
    padding-bottom: calc(var(--test-ssh-visible-height) + 2rem);
}

.com-testquestions.has-ssh-terminal.ssh-terminal-minimized {
    padding-bottom: 4rem;
}

.com-testquestions .test-ssh-terminal {
    position: fixed;
    z-index: 1040;
    left: 12rem;
    right: 1.5rem;
    bottom: 1rem;
    height: var(--test-ssh-visible-height, 18.5rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: .65rem;
    color: #e2e8f0;
    background: #182230;
    border: 1px solid #62748a;
    border-radius: .25rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .35);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.com-testquestions .test-ssh-terminal[hidden] {
    display: none;
}

.com-testquestions .test-ssh-terminal [hidden] {
    display: none !important;
}

.com-testquestions .test-ssh-terminal.is-minimized {
    height: auto;
}

.com-testquestions .test-ssh-terminal.is-maximized {
    z-index: 1100;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    height: auto;
}

.com-testquestions .test-ssh-terminal.is-minimized .test-ssh-screen,
.com-testquestions .test-ssh-terminal.is-minimized .test-ssh-actions,
.com-testquestions .test-ssh-terminal.is-minimized .test-ssh-sizing,
.com-testquestions .test-ssh-terminal.is-maximized .test-ssh-sizing {
    display: none;
}

.com-testquestions .test-ssh-sizing {
    display: flex;
    flex: 0 1 12rem;
    min-width: 3rem;
    align-items: center;
    margin: 0;
    font-size: .8rem;
}

.com-testquestions .test-ssh-sizing input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    accent-color: #67e8f9;
    cursor: ns-resize;
}

.com-testquestions .test-ssh-terminal-heading,
.com-testquestions .test-ssh-form,
.com-testquestions .test-ssh-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.com-testquestions .test-ssh-screen {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: .4rem 0;
    padding: .5rem;
    background: #0c1420;
    cursor: text;
}

.com-testquestions #test-ssh-status {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fbbf24;
}

.com-testquestions .test-ssh-toggle {
    flex: 0 0 auto;
    margin-left: 0;
    width: 1.8rem;
    height: 1.6rem;
    padding: 0;
    border: 1px solid #62748a;
    border-radius: .2rem;
    color: #e2e8f0;
    background: transparent;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.com-testquestions .test-ssh-maximize {
    margin-left: 0;
}

.com-testquestions .test-ssh-toggle:hover,
.com-testquestions .test-ssh-toggle:focus-visible {
    background: #334155;
}

.com-testquestions .test-ssh-output {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: auto;
    color: #e2e8f0;
    background: transparent;
    white-space: pre;
    font-size: .83rem;
}

.com-testquestions .test-ssh-form {
    flex: 0 0 auto;
    gap: 0;
    justify-content: flex-start;
}

.com-testquestions .test-ssh-form .test-ssh-prompt {
    flex: 0 1 auto;
    width: auto;
    max-width: 70%;
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #67e8f9;
    font-weight: 700;
}

.com-testquestions .test-ssh-form input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0;
    padding: .2rem 0;
    text-align: left;
    text-indent: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
}

.com-testquestions .test-ssh-entry {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

.com-testquestions .test-ssh-form input.is-secret,
.com-testquestions .test-ssh-form input.is-secret::selection {
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    caret-color: #fff;
}

.com-testquestions .test-ssh-mask {
    position: absolute;
    inset: 0;
    padding: .2rem 0;
    overflow: hidden;
    white-space: pre;
    pointer-events: none;
    color: #fff;
    user-select: none;
}

.com-testquestions .test-ssh-form button,
.com-testquestions .test-ssh-actions button {
    flex: 0 0 auto;
    padding: .2rem .5rem;
}

.com-testquestions .test-ssh-form button {
    margin-left: .5rem;
}

.com-testquestions .test-ssh-actions small {
    color: #bac7d6;
}

@media (max-width: 700px) {
    .com-testquestions .test-ssh-terminal {
        left: .5rem;
        right: .5rem;
    }

    .com-testquestions.has-ssh-terminal #test-timer-container {
        bottom: calc(var(--test-ssh-visible-height) + 2rem);
    }

    .com-testquestions.has-ssh-terminal.ssh-terminal-minimized #test-timer-container {
        bottom: 5rem;
    }
}

.com-testquestions.terminal-page .test-ssh-terminal {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: clamp(24rem, 70vh, 55rem);
    box-sizing: border-box;
}

.com-testquestions.terminal-page .test-ssh-terminal.is-maximized {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    height: auto;
}

.com-testquestions.terminal-page .test-ssh-terminal.is-minimized {
    height: auto;
}

.com-testquestions .timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #003366;
    font-weight: bold;
}

.com-testquestions .progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.com-testquestions .foto_pyt {
    margin: 5px auto;
    border: 2px #d4d4d4 none;
    border-radius: 4px;
    width: 98%;
    padding: 5px;
    text-align: center;
}

.com-testquestions .test-set-intro .test-set-content {
    overflow-wrap: anywhere;
}

.com-testquestions .foto_pyt img {
    max-width: 100%;
    height: auto;
}

.com-testquestions .pyt {
    background-color: var(--tq-blue);
    font-size: 18px;
    margin: 25px 0 11px;
    border: 1px var(--tq-border) solid;
    border-radius: .25rem;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: left;
    color: white;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, .4);
}

.com-testquestions .pyt h2 {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.com-testquestions .question-header {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
}

.com-testquestions .question-number {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 700;
}

.com-testquestions .question-text {
    flex: 1 1 auto;
    min-width: 0;
}

.com-testquestions .question-text > :first-child {
    margin-top: 0;
}

.com-testquestions .question-text > :last-child {
    margin-bottom: 0;
}

.com-testquestions .odp,
.com-testquestions .odpp,
.com-testquestions .odpu,
.com-testquestions .odpup {
    font-size: 16px;
    margin: 5px 0;
    border: 1px var(--tq-border) solid;
    border-radius: .25rem;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: left;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, .2);
}

.com-testquestions .answer-entry {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.com-testquestions .answer-entry > label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.com-testquestions .answer-entry > input.form-control,
.com-testquestions .answer-entry > textarea.form-control {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    box-sizing: border-box;
}

.com-testquestions textarea.long-answer {
    width: 100%;
    min-height: 12rem;
    resize: vertical;
}

.com-testquestions .odp {
    color: var(--tq-blue);
}

.com-testquestions .odpp {
    background-color: #dfdfdf;
    border-color: #777;
    color: #0000ff;
}

.com-testquestions .odpu {
    background-color: #ff0000;
    color: #fff;
}

.com-testquestions .odpup {
    background-color: #02f002;
    color: #000;
}

.com-testquestions .odp p,
.com-testquestions .odpp p,
.com-testquestions .odpu p,
.com-testquestions .odpup p,
.com-testquestions .odp input,
.com-testquestions .odpp input,
.com-testquestions .odpu input,
.com-testquestions .odpup input {
    margin: 0;
}

.com-testquestions .answer-list {
    padding: 0;
    list-style: none;
}

.com-testquestions .answer-list label {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
    cursor: pointer;
}

.com-testquestions .answer-list label input {
    flex: 0 0 auto;
    margin-top: .25rem;
}

.com-testquestions .answer-text {
    flex: 1 1 auto;
    min-width: 0;
}

.com-testquestions select.egzamin {
    color: var(--tq-blue);
    padding: 5px;
    border: solid 1px var(--tq-border);
    border-radius: .25rem;
    width: 100%;
    margin-bottom: 3px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, .4);
}

.com-testquestions input.egzamin {
    color: white;
    background: var(--tq-blue);
    padding: 5px;
    border: solid 1px var(--tq-border);
    border-radius: .25rem;
    margin: 3px 10px 5px 0;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, .4);
}

.com-testquestions .test-result {
    margin: 15px 5px;
}

.com-testquestions .test-start-form {
    width: 100%;
    max-width: 920px;
    margin: 0 0 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    color: #243247;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: .25rem;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, .28);
}

.com-testquestions .module-heading {
    width: 100%;
    max-width: 920px;
    margin: 0 0 .65rem;
    padding: .45rem .65rem;
    color: var(--tq-blue);
    background: #f5f5f5;
    border: 1px solid #d4d4d4;
    border-radius: .2rem .2rem 0 0;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .2);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
}

.com-testquestions .test-set-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .4em;
    margin: 0 0 .5rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
}

.com-testquestions .test-set-title span {
    text-decoration: none !important;
}

.com-testquestions .test-participant-name {
    margin: 0 0 .45rem;
    color: #46566b;
    font-size: .98rem;
}

.com-testquestions .test-participant-name strong {
    color: #243f62;
}

.com-testquestions .test-start-form > label,
.com-testquestions .test-start-form .mt-3 > label {
    display: block;
    margin: 0 0 .5rem;
    color: #243f62;
    font-size: .98rem;
    font-weight: 650;
}

.com-testquestions .test-start-form .input-group {
    display: block;
}

.com-testquestions .test-start-form select.egzamin {
    min-height: 3rem;
    margin: 0;
    padding: .7rem 2.5rem .7rem .9rem;
    color: #263b56;
    background-color: #fff;
    border: 1px solid #c7c7c7;
    border-radius: .25rem;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .24);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.com-testquestions .test-start-form .form-control {
    min-height: 2.9rem;
    padding: .65rem .85rem;
    color: #243247;
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: .25rem;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .2);
}

.com-testquestions .test-start-form select.egzamin:focus,
.com-testquestions .test-start-form .form-control:focus {
    border-color: var(--tq-blue);
    outline: 0;
    box-shadow: 0 0 0 .22rem rgba(74, 134, 207, .18);
}

.com-testquestions .test-start-form .mt-3 {
    margin-top: 1.15rem !important;
}

.com-testquestions .test-start-form fieldset {
    margin: 1.25rem 0 1rem;
    padding: .8rem 1rem .9rem;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: .25rem;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .2);
}

.com-testquestions .test-start-form fieldset legend {
    width: auto;
    margin: 0 0 .35rem;
    padding: 0 .45rem;
    color: #365c87;
    font-size: .9rem;
    font-weight: 700;
}

.com-testquestions .test-start-form .form-check {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.75rem;
    margin: .35rem 0 0;
    padding: .55rem .75rem;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: .2rem;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .12);
}

.com-testquestions .test-start-form .form-check-input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #3978c5;
}

.com-testquestions .test-start-form .form-check-label {
    color: #344b67;
    font-weight: 550;
    cursor: pointer;
}

.com-testquestions .test-start-form input.egzamin {
    min-height: 2.9rem;
    margin: 1rem 0 0;
    padding: .7rem 1.35rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    background: var(--tq-blue);
    border: 1px solid #3978c5;
    border-radius: .25rem;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.com-testquestions .test-start-form input.egzamin:hover {
    background: #3978c5;
    box-shadow: 4px 4px 5px rgba(0, 0, 0, .3);
    transform: translateY(-1px);
}

.com-testquestions .test-start-form input.egzamin:focus-visible {
    outline: 3px solid rgba(74, 134, 207, .35);
    outline-offset: 2px;
}

.com-testquestions .test-start-hint {
    max-width: 920px;
    margin: 0;
    padding: .9rem 1rem;
    color: #395a7a;
    background: #f7f9fc;
    border: 1px solid #d4d4d4;
    border-radius: .25rem;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .18);
}

@media (max-width: 575.98px) {
    .com-testquestions .test-start-form {
        padding: 1rem;
        border-radius: .25rem;
    }

    .com-testquestions .test-start-form input.egzamin {
        width: 100%;
    }
}

/* Keep the host template intact: every rule belongs to the component. */
.com-testquestions .module-heading,
.com-testquestions .test-set-title {
    color: var(--tq-link);
    font-family: inherit;
    font-weight: 700;
}

.com-testquestions .module-heading {
    border-color: var(--tq-border);
    background: #f5f5f5;
    box-shadow: var(--tq-shadow);
}

.com-testquestions .test-set-header,
.com-testquestions .test-set-intro,
.com-testquestions .test-start-form {
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--tq-border);
    border-radius: 4px;
    box-shadow: var(--tq-shadow);
}

.com-testquestions .pyt {
    background: var(--tq-blue);
    box-shadow: var(--tq-shadow);
    overflow-wrap: anywhere;
}

.com-testquestions .odp {
    color: var(--tq-ink);
    background: #fff;
}

.com-testquestions .odpp {
    color: #163f70;
    background: #eaf3ff;
    border-color: var(--tq-blue);
}

.com-testquestions .odpu {
    color: #842029;
    background: #f8d7da;
    border-color: #d99aa0;
}

.com-testquestions .odpup {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #8fbda8;
}

.com-testquestions :is(.odp, .odpp, .odpu, .odpup) {
    overflow-wrap: anywhere;
    box-shadow: 1px 2px 3px rgb(0 0 0 / 16%);
}

.com-testquestions .answer-list label {
    min-height: 2.75rem;
    align-items: center;
    padding: .4rem;
}

.com-testquestions :is(.answer-list input, .form-check-input) {
    accent-color: #245d9e;
}

.com-testquestions :is(input.egzamin, .btn-primary) {
    min-height: 2.75rem;
    padding: .65rem 1.1rem;
    color: #fff;
    background: #245d9e;
    border: 1px solid #245d9e;
    border-radius: 4px;
    box-shadow: var(--tq-shadow);
    font: 700 1rem/1.4 Arial, Helvetica, sans-serif;
    cursor: pointer;
    white-space: normal;
}

.com-testquestions :is(input.egzamin, .btn-primary):hover,
.com-testquestions .test-start-form input.egzamin:hover {
    background: #1c4b80;
    border-color: #1c4b80;
    transform: none;
}

.com-testquestions .test-start-form input.egzamin {
    background: #245d9e;
    border-color: #245d9e;
}

.com-testquestions :is(.form-control, select.egzamin) {
    max-width: 100%;
    box-sizing: border-box;
    font: inherit;
}

.com-testquestions :is(button, input, select, textarea, a):focus-visible {
    outline: 3px solid #245d9e;
    outline-offset: 3px;
}

.com-testquestions .test-ssh-terminal :is(button, input):focus-visible {
    outline-color: #67e8f9;
}

.com-testquestions #test-timer-container {
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--tq-shadow);
}

.com-testquestions .progress-ring__circle { stroke: var(--tq-blue); }

@media (max-width: 575.98px) {
    .com-testquestions .answer-entry { align-items: stretch; flex-direction: column; }
    .com-testquestions #test-timer-container { left: .5rem; bottom: .5rem; }
    .com-testquestions .test-set-title { font-size: 1.5rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    .com-testquestions .progress-ring__circle,
    .com-testquestions .test-start-form input.egzamin,
    .com-testquestions .test-start-form select.egzamin,
    .com-testquestions .test-start-form .form-control { transition: none; }
}

/* Cards inspired by plociennik.info / Kuchnia. All selectors stay inside the component. */
.com-testquestions [hidden] { display: none !important; }
.com-testquestions .module-heading {
    max-width: none; padding: 0; margin: 0 0 1.5rem; border: 0;
    background: transparent; box-shadow: none; color: var(--tq-action); font-size: 2rem;
}
.com-testquestions :is(.test-set-header, .test-set-intro, .test-start-form, .test-start-hint, .testquestion) {
    border-color: var(--tq-border); border-radius: 14px; box-shadow: var(--tq-shadow);
}
.com-testquestions .testquestion { --tq-question-padding: clamp(1rem, 2.5vw, 1.5rem); padding: var(--tq-question-padding); border: 1px solid var(--tq-border); background: #fff; margin-bottom: 1.25rem; }
.com-testquestions .test-set-title { color: var(--tq-action); }
.com-testquestions .pyt { margin: .85rem 0 1.2rem; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tq-ink); box-shadow: none; font-weight: 600; }
.com-testquestions .test-question-points { padding: .2rem .65rem; border-radius: 5px; background: var(--tq-pale); color: #244f78; white-space: nowrap; font-size: .875rem; }
.com-testquestions :is(.odp, .odpp, .odpu, .odpup) { border-radius: 8px; box-shadow: none; margin: .5rem 0; }
.com-testquestions .answer-list .odp:has(input:checked) { background: var(--tq-pale); border-color: var(--tq-action); }
.com-testquestions .answer-list label { gap: .7rem; }
.com-testquestions .answer-list input { width: 1.1rem; height: 1.1rem; }
.com-testquestions .answer-entry { flex-direction: column; align-items: stretch; padding: 0; border: 0; }
.com-testquestions .answer-entry > label { white-space: normal; }
.com-testquestions :is(.form-control, select.egzamin),
.com-testquestions .test-start-form :is(.form-control, select.egzamin) { border-radius: 8px; border: 1px solid #aab9c7; box-shadow: none; }
.com-testquestions :is(input.egzamin, .btn-primary),
.com-testquestions .test-start-form input.egzamin { background: var(--tq-action); border-color: var(--tq-action); border-radius: 7px; box-shadow: none; }
.com-testquestions .test-start-form fieldset,
.com-testquestions .test-start-form .form-check { border-radius: 8px; box-shadow: none; }
.com-testquestions :is(#attempt-save-status, #attempt-local-list > *, details.mb-4) { border-radius: 10px; }
.com-testquestions details.mb-4 { padding: 1rem 1.25rem; border: 1px solid var(--tq-border); background: #f6f9fd; }
.com-testquestions summary { cursor: pointer; color: var(--tq-action); font-weight: 700; }
.com-testquestions .test-set-picker { margin-bottom: 1.25rem; }
.com-testquestions .test-set-picker > summary { margin-bottom: 1rem; }
.com-testquestions .test-set-card {
    display: flex; align-items: center; gap: 1.25rem; width: 100%; margin: 0 0 1rem; padding: 1.25rem;
    text-align: left; font: inherit; color: var(--tq-ink); background: #fff; border: 1px solid var(--tq-border);
    border-radius: 14px; box-shadow: var(--tq-shadow); cursor: pointer;
}
.com-testquestions .test-set-card:is(:hover, [aria-pressed="true"]) { border-color: var(--tq-action); background: #f8fbff; }
.com-testquestions :is(.test-set-icon, .test-set-thumbnail) { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.com-testquestions .test-set-icon { display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; color: var(--tq-action); background: var(--tq-pale); }
.com-testquestions .test-set-card-body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.com-testquestions .test-set-card-title { display: block; font-size: 1.2rem; }
.com-testquestions .test-set-card-subject { display: block; color: #607080; margin-top: .2rem; }
.com-testquestions .test-set-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.com-testquestions .test-set-card-meta > span { background: var(--tq-pale); color: #244f78; padding: .15rem .6rem; border-radius: 5px; font-size: .8rem; }
.com-testquestions .test-set-card-arrow { color: var(--tq-action); font-size: 1.5rem; }
.com-testquestions .test-ssh-terminal { border-radius: 12px; }
@media (max-width: 575.98px) {
    .com-testquestions .test-set-card { padding: 1rem; gap: .8rem; }
    .com-testquestions :is(.test-set-icon, .test-set-thumbnail) { width: 52px; height: 52px; flex-basis: 52px; }
    .com-testquestions .test-set-card-title { font-size: 1.05rem; }
    .com-testquestions .module-heading { font-size: 1.65rem; }
}

.com-testquestions .question-header { gap: .65rem; }
.com-testquestions .question-number { color: var(--tq-action); }
.com-testquestions .test-session-panel {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
    padding: 1.2rem 1.4rem; margin: 0 0 1.5rem; background: #f4f8fd;
    border: 1px solid #cddff2; border-radius: 12px;
}
.com-testquestions .test-session-work { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.com-testquestions .test-session-name { font-weight: 700; }
.com-testquestions .test-session-panel #attempt-save-status { margin: .35rem 0 0; font-size: .9rem; color: #3b5269; }
.com-testquestions .test-session-panel #test-timer-container {
    position: static; flex: 0 0 auto; width: auto; height: auto; margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none; text-align: right;
}
.com-testquestions .test-time-label { font-size: .8rem; color: #607080; }
.com-testquestions .test-session-panel .timer-text { position: static; transform: none; font-size: 1.65rem; color: #243343; font-variant-numeric: tabular-nums; line-height: 1.3; }
@media (max-width: 575.98px) {
    .com-testquestions .test-session-panel { padding: 1rem; gap: .75rem; flex-wrap: wrap; }
    .com-testquestions .test-session-work { flex-basis: 60%; }
    .com-testquestions .question-header { gap: .4rem; }
}

/* Grey question text header; photos and answers remain on white. */
.com-testquestions .question-prompt {
    margin: calc(-1 * var(--tq-question-padding)) calc(-1 * var(--tq-question-padding)) 1.25rem;
    padding: var(--tq-question-padding);
    background: #f1f3f5;
    border-bottom: 1px solid #d5dce3;
    border-radius: 13px 13px 0 0;
}
.com-testquestions .question-prompt .pyt { margin: 0; }
.com-testquestions .testquestion .foto_pyt { margin: 1rem auto; background: #fff; }

.com-testquestions .test-selected-set { margin: 0 0 1rem; overflow-wrap: anywhere; }
.com-testquestions .test-selected-set-label { display: block; margin-bottom: .25rem; font-size: .85rem; color: #607080; }
.com-testquestions .test-selected-set-title { display: block; color: var(--tq-action); font-size: 1.3rem; line-height: 1.35; }

.com-testquestions .test-participant-options { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; padding: 1.25rem; background: #f4f8fd; border: 1px solid #cddff2; border-radius: 12px; }
.com-testquestions .test-participant-options:has(.test-time-extension) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.com-testquestions .test-participant-identity { min-width: 0; }
.com-testquestions .test-participant-identity > label { display: block; margin: 0 0 .5rem; color: #243f62; font-weight: 650; }
.com-testquestions .test-start-form .test-time-extension { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.com-testquestions .attempt-local-resume > button { margin-top: .75rem; }
.com-testquestions .attempt-local-resume > [role="status"] { display: block; margin-top: .5rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .com-testquestions .test-participant-options:has(.test-time-extension) { grid-template-columns: minmax(0, 1fr); }
}

.com-testquestions .test-start-form .test-time-extension legend { padding: 0; margin: 0 0 .5rem; font-size: .98rem; }
.com-testquestions .test-extension-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.com-testquestions .test-start-form .test-extension-choices .form-check { min-width: 0; margin: 0; padding: .55rem; }
.com-testquestions .test-extension-choices .form-check-label { min-width: 0; overflow-wrap: anywhere; }

.com-testquestions .test-ssh-terminal-heading {
    margin: -.65rem -.65rem 0;
    padding: .65rem;
    background: #eaf1f9;
    color: #243343;
    border-bottom: 1px solid #cddff2;
    border-radius: 11px 11px 0 0;
}
.com-testquestions .test-ssh-terminal-heading #test-ssh-status { color: #775109; }
.com-testquestions .test-ssh-terminal-heading .test-ssh-sizing input { accent-color: #28639e; }
.com-testquestions .test-ssh-terminal-heading .test-ssh-toggle { color: #243343; border-color: #aab9c7; background: #fff; }
.com-testquestions .test-ssh-terminal-heading .test-ssh-toggle:is(:hover, :focus-visible) { background: #dbe8f7; }
.com-testquestions .test-ssh-terminal-heading :is(button, input):focus-visible { outline-color: #28639e; }

/* Match the introductory card to question text and photo sections. */
.com-testquestions :is(.test-set-intro, .test-running-intro) { padding: 0; }
.com-testquestions :is(.test-set-intro > .test-set-content, .test-running-intro > .test-running-intro-text) {
    padding: clamp(1rem, 2.5vw, 1.5rem); background: #f1f3f5;
    border-bottom: 1px solid #d5dce3; border-radius: 13px 13px 0 0;
}
.com-testquestions :is(.test-set-intro > .test-set-content, .test-running-intro > .test-running-intro-text):only-child { border-bottom: 0; border-radius: 13px; }
.com-testquestions .test-set-intro > .test-set-content > :first-child { margin-top: 0; }
.com-testquestions .test-set-intro > .test-set-content > :last-child { margin-bottom: 0; }
.com-testquestions :is(.test-set-intro, .test-running-intro) > .foto_pyt {
    width: 100%; margin: 0; padding: clamp(1rem, 2.5vw, 1.5rem); box-sizing: border-box;
    background: #fff; border: 0; border-radius: 0 0 13px 13px;
}
.com-testquestions :is(.test-set-intro, .test-running-intro) > .foto_pyt:only-child { border-radius: 13px; }
.com-testquestions .test-empty-state {
    padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; text-align: center;
    background: #f4f8fd; border: 1px solid #cddff2; border-top: 4px solid var(--tq-blue);
    border-radius: 14px; box-shadow: var(--tq-shadow);
}
.com-testquestions .test-empty-icon { display: block; margin: 0 auto 1rem; padding: .5rem; box-sizing: content-box; color: var(--tq-action); background: #e4eefb; border-radius: 14px; }
.com-testquestions .test-empty-state :is(h1, h2) { margin: 0; font-family: inherit; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.35; color: var(--tq-action); text-decoration: none; }

.com-testquestions .test-floating-timer {
    position: fixed; z-index: 1120; left: max(.75rem, env(safe-area-inset-left)); bottom: max(.75rem, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    min-width: 7.5rem; padding: .6rem .8rem; box-sizing: border-box;
    color: #244f78; background: #f4f8fd; border: 1px solid #b4cde8;
    border-radius: 12px; box-shadow: 0 3px 14px rgb(23 45 71 / 18%); pointer-events: auto; cursor: grab; touch-action: none; user-select: none;
}
.com-testquestions .test-floating-timer > span { font-size: .75rem; }
.com-testquestions .test-floating-timer > strong { font: 700 1.6rem/1.2 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; }
.com-testquestions .test-floating-timer.is-warning { background: #fff5e5; color: #874300; border-color: #e5b66b; }
.com-testquestions .test-floating-timer.is-critical { background: #fff0f0; color: #a51e2b; border-color: #e6a7ae; }
.com-testquestions #test-form { padding-bottom: 6rem; }

.com-testquestions .test-pending-points { margin: .75rem 0 1rem; color: #244f78; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.3; }
.com-testquestions .test-pending-wait { margin: 0; color: #3b5269; overflow-wrap: anywhere; }
.com-testquestions #results-wait-countdown { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tq-action); }

.com-testquestions .test-exam-heading { margin-bottom: 1.5rem; }
.com-testquestions .test-exam-heading .tab-switch-notice { margin-top: .75rem; margin-bottom: 0; }
.com-testquestions .test-running-intro-text .test-set-content > :first-child { margin-top: 0; }
.com-testquestions .test-running-intro-text .test-set-content > :last-child { margin-bottom: 0; }

.com-testquestions .test-completed-duration { margin-top: .35rem; font-size: .9rem; color: #3b5269; }
.com-testquestions .test-completed-result { flex: 0 0 auto; max-width: 100%; text-align: right; }
.com-testquestions .test-completed-score { display: block; font-size: 1.65rem; line-height: 1.3; color: #244f78; font-variant-numeric: tabular-nums; }
.com-testquestions .test-completed-percentage { color: #3b5269; font-size: .9rem; }

.com-testquestions .test-floating-timer.is-dragging { cursor: grabbing; }
.com-testquestions .test-floating-timer:focus-visible { outline: 3px solid #28639e; outline-offset: 3px; }
