.ttf-selftest-runner {
    margin: 2rem 0;
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid #648b96;
    border-radius: 1rem;
    color: #36596e;
    background: #eaf3f6;
}

.ttf-selftest-runner fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.ttf-selftest-runner legend {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.ttf-selftest-runner label {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: .75rem;
    margin-bottom: .5rem;
    border: 1px solid #648b96;
    border-radius: .5rem;
    background: white;
    cursor: pointer;
}

.ttf-selftest-runner button {
    margin: 0 .5rem .5rem 0;
    padding: .65rem 1rem;
    border: 0;
    border-radius: .5rem;
    color: white;
    background: #36596e;
}

.ttf-selftest-runner button[hidden] {
    display: none;
}

.ttf-selftest-runner :focus-visible {
    outline: 3px solid #36596e;
    outline-offset: 3px;
}

.ttf-selftest-runner .ttf-test-result {
    white-space: pre-line;
}

.ttf-selftest-runner .ttf-test-error:not(:empty) {
    color: #8a2929;
}

.ttf-selftest-runner .ttf-test-controls {
    display: flex;
    flex-wrap: wrap;
}

.ttf-selftest-runner.ttf-design-magazine {
    background: white;
    border-width: 0 0 0 .55rem;
    border-color: #648b96;
    border-radius: 0;
    font-family: Georgia, serif;
}
.ttf-selftest-runner.ttf-design-magazine legend {
    font-size: clamp(1.45rem, 4vw, 2.15rem);
}
.ttf-selftest-runner.ttf-design-scientific {
    background: white;
    border: 1px solid #36596e;
    border-radius: 0;
}
.ttf-selftest-runner.ttf-design-scientific label {
    border-width: 0 0 1px;
    border-radius: 0;
    padding-block: .45rem;
}
.ttf-selftest-runner.ttf-design-interactive fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
    gap: .6rem;
}
.ttf-selftest-runner.ttf-design-interactive label:has(input:checked) {
    border-color: #36596e;
    box-shadow: inset 0 0 0 2px #36596e;
    background: #eef5ee;
}
.ttf-selftest-runner output { font-weight: 700; }
.ttf-selftest-runner .ttf-result-display { margin: 1rem 0; }
.ttf-selftest-runner .ttf-result-display:empty { display: none; }
.ttf-selftest-runner .ttf-chart-bar {
    overflow: hidden;
    width: min(100%,30rem);
    height: .9rem;
    border-radius: .5rem;
    background: #c8d9de;
    margin: .35rem 0;
}
.ttf-selftest-runner .ttf-chart-bar span {
    display: block;
    width: var(--ttf-value);
    height: 100%;
    background: #36596e;
}
.ttf-selftest-runner .ttf-chart-vertical {
    position: relative;
    width: 2.4rem;
    height: 8rem;
}
.ttf-selftest-runner .ttf-chart-vertical span {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: var(--ttf-value);
}
.ttf-selftest-runner .ttf-chart-progress { height: 1.4rem; }
.ttf-selftest-runner .ttf-chart-progress span { background: #778f79; }
.ttf-selftest-runner .ttf-chart-donut {
    background: conic-gradient(#36596e var(--ttf-value), #c8d9de 0);
    width: 7.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.ttf-selftest-runner .ttf-chart-donut::after {
    content: '';
    width: 66%;
    aspect-ratio: 1;
    border-radius: inherit;
    background: #fff;
}
.ttf-selftest-runner .ttf-traffic { display: flex; gap: .6rem; }
.ttf-selftest-runner .ttf-traffic span {
    width: 1.4rem;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .28;
}
.ttf-selftest-runner .ttf-traffic-0 { background: #4f7152; }
.ttf-selftest-runner .ttf-traffic-1 { background: #d39a20; }
.ttf-selftest-runner .ttf-traffic-2 { background: #a63a3a; }
.ttf-selftest-runner .ttf-traffic span.ttf-traffic-active {
    opacity: 1;
    outline: 2px solid #36596e;
    outline-offset: 2px;
}
.ttf-selftest-runner svg { display: block; max-width: 100%; height: auto; }
[data-ttf-result-search][hidden] { display: none !important; }
.ttf-selftest-runner .ttf-result-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #778f79;
    border-radius: .7rem;
}
.ttf-selftest-runner progress {
    width: min(100%,18rem);
    max-width: 100%;
    accent-color: #36596e;
}
.ttf-selftest-runner .ttf-decision-path {
    margin: 0 0 0 .8rem;
    padding-left: 1.35rem;
    border-left: 2px solid #648b96;
}
.ttf-selftest-runner .ttf-decision-path li {
    margin: .6rem 0;
    padding: .6rem;
    border: 1px solid #648b96;
    border-radius: .4rem;
    background: white;
}
.ttf-selftest-runner .ttf-decision-path li span { display: block; }
.ttf-selftest-faq details { padding:.7rem 0; border-bottom:1px solid #648b96; }
.ttf-selftest-faq summary { cursor:pointer; font-weight:600; }
.ttf-selftest-runner .ttf-test-pdf-button{display:inline-block;background:#405668;color:#fff;text-decoration:none;padding:14px 22px;border-radius:12px;margin:6px 12px 6px 0;font:inherit;line-height:1.5}.ttf-selftest-runner .ttf-test-pdf-button:hover{background:#36596e;color:#fff}

/* Shared patient portal visual system, independent of scoring template. */
body.single-selbsttest .ttf-selftest-runner.ttf-selftest-runner,
body.single-selbsttest .ttf-selftest-faq.ttf-selftest-faq,
body.single-selbsttest .ttf-bindung-v3 .ttf-panel {
    box-sizing:border-box; width:100%; max-width:980px; margin:24px auto!important;
    padding:clamp(20px,4vw,36px)!important; border:1px solid #cadfe6!important;
    border-radius:20px!important; color:#36596e!important;
    font:16px/1.7 Arial,Helvetica,sans-serif!important;
    background-color:#fff!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='160' viewBox='0 0 260 160'%3E%3Cg fill='none' stroke='%23648b96' stroke-opacity='.16'%3E%3Ccircle cx='245' cy='5' r='58'/%3E%3Ccircle cx='245' cy='5' r='78'/%3E%3Ccircle cx='245' cy='5' r='98'/%3E%3C/g%3E%3Cpath d='M100 0 Q155 65 205 35 T280 65 M120 0 Q175 55 215 20 T280 45' fill='none' stroke='%23778f79' stroke-opacity='.16'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important; background-position:right top!important;
    box-shadow:0 8px 26px rgba(54,89,110,.07)!important;
}
body.single-selbsttest .ttf-bindung-v3 .ttf-panel:not(.white){background-color:#eaf3f6!important}
body.single-selbsttest .ttf-selftest-runner *,body.single-selbsttest .ttf-selftest-faq *{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif!important}
body.single-selbsttest .ttf-selftest-runner h2,body.single-selbsttest .ttf-selftest-faq h2,body.single-selbsttest .ttf-selftest-runner legend{color:#36596e!important;font-size:clamp(20px,3vw,28px)!important;font-weight:600;line-height:1.35!important}
body.single-selbsttest .ttf-selftest-runner fieldset{display:block;min-width:0}
body.single-selbsttest .ttf-selftest-runner label{border:1px solid #cadfe6!important;border-radius:12px!important;padding:12px 16px!important;background:#fff;line-height:1.6!important}
body.single-selbsttest .ttf-selftest-runner label:has(input:checked){background:#eaf3f6!important;border-color:#648b96!important;box-shadow:none}
body.single-selbsttest .ttf-selftest-runner input{accent-color:#648b96}
body.single-selbsttest .ttf-selftest-runner input[type=range]{width:min(100%,520px);max-width:100%}
body.single-selbsttest .ttf-selftest-runner button,body.single-selbsttest .ttf-selftest-runner .ttf-test-pdf-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;background:#36596e!important;color:#fff!important;border:0!important;border-radius:11px!important;padding:13px 22px!important;margin:6px 12px 6px 0!important;font-size:15px!important;line-height:1.5!important;text-decoration:none!important;cursor:pointer}
body.single-selbsttest .ttf-selftest-runner button:hover,body.single-selbsttest .ttf-selftest-runner .ttf-test-pdf-button:hover{background:#648b96!important}
body.single-selbsttest .ttf-selftest-runner [hidden]{display:none!important}
body.single-selbsttest .ttf-selftest-faq details,body.single-selbsttest .ttf-bindung-v3 details{background:#fff;border:1px solid #d5e5ea!important;border-radius:12px;padding:16px 20px;margin:12px 0}
body.single-selbsttest .ttf-selftest-faq summary{cursor:pointer;font-weight:600}
@media(max-width:600px){body.single-selbsttest .ttf-selftest-runner.ttf-selftest-runner,body.single-selbsttest .ttf-selftest-faq.ttf-selftest-faq{padding:18px!important}body.single-selbsttest .ttf-selftest-runner .ttf-test-controls{gap:6px}}

[data-ttf-custom-result-search][hidden], [data-ttf-result-search][hidden] {display:none!important;}

/* Shared visual system 1.1.0: independent alternating ornaments. */
body.single-selbsttest .ttf-selftest-runner, body.single-selbsttest .ttf-shared-result, body.single-selbsttest .ttf-shared-exercise, body.single-selbsttest .ttf-selftest-faq, body.single-selbsttest .ttf-shared-guide {box-sizing:border-box;position:relative;min-width:0;width:100%;max-width:100%;font-family:inherit;line-height:1.65;border-radius:20px;}
body.single-selbsttest .ttf-selftest-runner {background:repeating-radial-gradient(circle at 102% -12%,transparent 0 19px,rgba(100,139,150,.13) 20px 21px,transparent 22px 35px),#eaf3f6;border:1px solid #c6d8df;padding:clamp(18px,4vw,36px);}
body.single-selbsttest .ttf-shared-result {background:repeating-radial-gradient(ellipse at -12% 110%,transparent 0 24px,rgba(119,143,121,.15) 25px 26px,transparent 27px 43px),#edf3eb;padding:clamp(16px,3vw,28px);}
body.single-selbsttest .ttf-shared-exercise {background:repeating-radial-gradient(ellipse at 105% 110%,transparent 0 16px,rgba(119,143,121,.12) 17px 18px,transparent 19px 32px),#fff;padding:20px;margin:18px 0;}
body.single-selbsttest .ttf-selftest-faq {background:repeating-radial-gradient(ellipse at -10% -15%,transparent 0 25px,rgba(100,139,150,.12) 26px 27px,transparent 28px 44px),#f5f8fa;padding:clamp(16px,3vw,30px);}
body.single-selbsttest [data-ttf-canonical-search] .ttf-us {background-image:repeating-radial-gradient(circle at 105% 0%,transparent 0 23px,rgba(100,139,150,.12) 24px 25px,transparent 26px 40px)!important;}
body.single-selbsttest .ttf-selftest-runner p,body.single-selbsttest .ttf-selftest-faq p,body.single-selbsttest .ttf-shared-guide p {width:100%;max-width:none;white-space:normal;overflow-wrap:break-word;}
body.single-selbsttest .ttf-selftest-runner button,body.single-selbsttest .ttf-test-pdf-button {display:inline-block;background:#36596e;color:#fff;border-radius:9px;padding:12px 18px;white-space:normal;text-decoration:none;min-height:44px;}
body.single-selbsttest [data-ttf-canonical-search][hidden],body.single-selbsttest .ttf-selftest-runner [hidden]{display:none!important;}
@media(max-width:600px){body.single-selbsttest .ttf-selftest-runner,body.single-selbsttest .ttf-shared-result{padding:16px;}body.single-selbsttest .ttf-selftest-runner button{max-width:100%;}}
