/* Bremsen uses the native trainer shell; these rules cover its exercises. */
body.trainer-page[data-trainer="bremsen"]{--amber:#f3b7c4;--accent-wash:#392c35;--accent-soft:#3c2d39}
.trainer-page[data-trainer="bremsen"] .nav{max-width:760px;grid-template-columns:repeat(5,minmax(0,1fr))}
.trainer-page[data-trainer="bremsen"] #app:is([data-screen="exercises"],[data-screen="guide"]){max-width:960px}
.brake-learning-path{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--panel)}
.brake-learning-path h2{font-size:17px;line-height:1.4;margin:0 0 5px}
.brake-learning-path p{font-size:13px;color:var(--muted);margin:0;line-height:1.6}
.brake-learning-path button{flex:none}
.guide-count{margin:14px 0 10px}
.brake-rule{margin:9px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.brake-rule summary{padding:14px 16px;cursor:pointer;line-height:1.5;color:var(--text)}
.brake-rule summary>span{display:inline-grid;gap:4px;max-width:calc(100% - 22px);vertical-align:middle}
.brake-rule summary small{color:var(--muted);font-size:11px;font-weight:500}
.brake-rule summary strong{font-size:14px;font-weight:650}
.brake-rule-detail{padding:0 16px 16px;border-top:1px solid var(--line-soft)}
.brake-rule-prompt{margin:14px 0;color:#c3d2df;font-size:13px;line-height:1.65}
.brake-rule-detail .answer-main{margin-top:12px}
.brake-freight-guide{margin-bottom:22px;padding:16px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--panel);scroll-margin-top:18px}
.brake-freight-guide h2{margin:0;font-size:19px;line-height:1.4}
.brake-freight-guide :is(p,li){font-size:13px;line-height:1.65;color:var(--muted)}
.brake-freight-guide :is(ul,ol){padding-left:22px}
.brake-freight-guide .brake-rule{background:#12222e}
.brake-freight-guide .brake-rule:last-child{margin-bottom:0}
.brake-freight-variant{padding-top:12px}
.brake-freight-variant+.brake-freight-variant{margin-top:14px;border-top:1px solid var(--line-soft)}
.brake-freight-variant h3{margin:0;font-size:16px;line-height:1.45}
.brake-freight-variant h4{margin:14px 0 5px;font-size:13px}
.brake-freight-variant ul{margin:0 0 12px}
.brake-freight-steps{margin:8px 0}
.brake-freight-steps summary{padding:8px 0;min-height:44px;color:var(--amber);font-size:13px}
.brake-freight-steps li+li{margin-top:8px}
.brake-freight-exercise-link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;text-decoration:none}
.brake-source-list{margin:16px 0 0;padding-left:20px;display:grid;gap:10px}
.brake-source-list li{font-size:13px;line-height:1.65}
.brake-exercise-links{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 20px}
.brake-exercise-links a{display:inline-flex;align-items:center;text-decoration:none}
[data-bremsen-calculator],[data-bremsen-procedures],#bremsen-limits{scroll-margin-top:18px}
[data-bremsen-calculator][hidden],[data-bremsen-procedures][hidden],[data-bremsen-calculator] [hidden],[data-bremsen-procedures] [hidden]{display:none!important}
.brake-calculator,.brake-procedures{margin:20px 0 28px;padding:20px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--panel)}
.brake-calculator h2,.brake-procedures h2{margin:4px 0 10px;font-size:22px;line-height:1.3;letter-spacing:-.025em}
.brake-calculator h3,.brake-procedures h3{margin:18px 0 10px;font-size:16px;line-height:1.5;font-weight:650}
.brake-calculator p,.brake-procedures p{font-size:13px;line-height:1.7;color:var(--muted)}
.brake-calculator .ref,.brake-procedures .ref{display:inline-block;font-size:11px;line-height:1.65;overflow-wrap:anywhere;max-width:100%}
.brake-case-select,.brake-procedure-select{display:flex;flex-direction:column;gap:7px;margin:18px 0;color:#dce6ef;font-size:13px;font-weight:650;line-height:1.5}
.brake-calculator :is(input,select),.brake-procedures select{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #435972;border-radius:10px;background:#111c29;color:#f2f6fa;font:400 16px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
.brake-calculator :is(button,input,select,summary):focus-visible,.brake-procedures :is(button,select,summary):focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.brake-case-context,.brake-procedure-context{margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#12222e}
.brake-case-context p,.brake-procedure-context p{margin:5px 0 10px;color:#c4d4e1}
.brake-procedure-context h3{margin:0 0 8px}
.brake-procedure-context .brake-procedure-case-title{font-size:14px;line-height:1.65;color:#e8dee4}
.brake-procedure-context ul{margin:10px 0 14px;padding-left:20px;display:grid;gap:7px;font-size:13px;line-height:1.7;color:#c4d4e1}
.brake-facts{display:grid;grid-template-columns:1fr;margin:12px 0 0;border-top:1px solid var(--line-soft);font-size:13px;line-height:1.6}
.brake-facts>div{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);min-width:0}
.brake-facts dt,.brake-facts dd{margin:0;padding:9px 0;border-bottom:1px solid var(--line-soft)}
.brake-facts dt{font-weight:600;color:#b4c7d6;padding-right:12px}
.brake-facts dd{color:#e1eaf1;overflow-wrap:anywhere}
.brake-length-table{width:100%;margin:18px 0;border-collapse:collapse;text-align:left;font-size:13px;font-variant-numeric:tabular-nums}
.brake-length-table caption{text-align:left;font-weight:650;margin-bottom:8px}
.brake-length-table :is(th,td){padding:8px 4px;border-bottom:1px solid var(--line-soft)}
.brake-length-table td{color:#e1eaf1}
.brake-weight-groups{display:grid;gap:14px;min-width:0;margin:16px 0}
.brake-weight-groups fieldset{min-width:0;margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#13222f}
.brake-weight-groups legend{max-width:100%;padding:0 5px;color:#e2d3dd;font-size:13px;font-weight:650;line-height:1.6;white-space:normal}
.brake-weight-groups p{margin:4px 0 12px}
.brake-weight-groups label,.brake-calc-totals label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:600;line-height:1.6;color:#dce6ef}
.brake-calc-totals{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}
.brake-calc-feedback,.brake-procedure-feedback{margin:18px 0;padding:14px 16px;border:1px solid #3d6054;border-left:3px solid #8fdfb7;border-radius:10px;background:#142629;color:#e0f0e8;line-height:1.65}
.brake-calc-feedback[data-result="compare"],.brake-procedure-feedback.is-wrong{border-color:#70505e;border-left-color:#f3b7c4;background:#2b222c}
.brake-calc-feedback p,.brake-procedure-feedback p{color:#c9ddd3;margin:8px 0}
.brake-calc-feedback[data-result="compare"] p,.brake-procedure-feedback.is-wrong p{color:#e0ccd5}
.brake-procedure-feedback>strong{font-size:14px;font-weight:650}
.brake-procedure-feedback .action{display:block;margin-top:13px}
.brake-procedure-feedback .secondary{margin-top:8px}
.brake-answer-checks{list-style:none;display:grid;gap:8px;padding:0;margin:14px 0;font-size:13px;line-height:1.65}
.brake-answer-checks li{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:10px;padding:8px 0;border-bottom:1px solid #3b514d}
.brake-answer-checks strong{font-weight:650}
.brake-solution-group{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.brake-solution-group h4{font-size:14px;margin:0 0 8px;font-weight:650;line-height:1.5}
.brake-solution-group ol{padding-left:22px;margin:10px 0;display:grid;gap:8px;font-size:13px;line-height:1.7;color:#d5e2dc}
.brake-procedure-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.brake-procedure-tabs button{flex:1 1 180px;min-height:44px;padding:9px 12px;line-height:1.5;font-size:13px}
.brake-procedure-tabs button[aria-pressed="true"]{border-color:var(--amber);background:var(--accent-soft);color:var(--amber)}
.brake-freight-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px}
.brake-freight-case-grid button{min-width:44px;min-height:44px;padding:5px 6px}
.brake-freight-case-grid button[aria-pressed="true"]{border-color:var(--amber);background:var(--accent-soft);color:var(--amber)}
.brake-freight-decision-link{display:inline-flex;align-items:center;min-height:44px;color:var(--amber);font-size:13px;text-underline-offset:3px}
.brake-procedure-check-location{display:grid;gap:2px;padding-top:10px;border-top:1px solid var(--line)}
.brake-freight-common-conditions{margin:8px 0;border-top:1px solid var(--line)}
.brake-freight-common-conditions summary{min-height:44px;padding:11px 0;cursor:pointer;font-size:13px}
.brake-procedure-note{margin:8px 0 14px}
.brake-procedure-work{margin-top:20px}
.brake-procedure-work h3.brake-procedure-prompt{margin-top:10px;font-size:19px;line-height:1.4}
.brake-procedure-options{display:grid;gap:10px;margin:16px 0}
.brake-procedure-option{display:grid;gap:7px;width:100%;min-height:60px;padding:14px;text-align:left;border:1px solid #435268;border-radius:10px;background:#192737;color:#e1eaf1;cursor:pointer;font:400 13px/1.65 var(--ui-font,system-ui,sans-serif)}
.brake-procedure-option strong{font-size:14px;font-weight:650;line-height:1.5}
.brake-procedure-option>span{color:#b9cbda;line-height:1.7}
.brake-procedure-option.is-correct{background:#193b30;border-color:#6db28d;color:#effbf5}
.brake-procedure-option.is-wrong{background:#342430;border-color:#b77b8f;color:#f5d8e4}
.brake-procedure-option:disabled{cursor:default}
.brake-procedure-option.is-correct>span,.brake-procedure-option.is-wrong>span{color:inherit}
.brake-procedure-steps{margin:14px 0 0;padding-left:25px}
.brake-procedure-steps>li{padding:0 0 17px 5px;margin-bottom:16px;border-bottom:1px solid var(--line-soft)}
.brake-procedure-steps>li:last-child{border-bottom:0;margin-bottom:0}
.brake-procedure-steps>li::marker{color:var(--amber);font-weight:700}
.brake-procedure-steps h4{margin:0 0 7px;font-size:14px;line-height:1.6;font-weight:650}
.brake-procedure-phase{display:block;margin-bottom:5px;color:var(--amber);font-size:11px;font-weight:650;line-height:1.5}
.brake-procedure-steps p{margin:5px 0 8px;color:#c1d3e1}
.brake-procedure-history{margin:17px 0;border-top:1px solid var(--line-soft)}
.brake-procedure-history summary{padding:12px 0;min-height:44px;font-size:13px;line-height:1.6;color:#c4d5e2;cursor:pointer}
@media(min-width:900px){.brake-procedure-options{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.trainer-page[data-trainer="bremsen"] .nav{gap:2px;padding:3px;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible}.trainer-page[data-trainer="bremsen"] .nav button{grid-column:span 2;font-size:12px;padding:8px 4px;min-width:0}.trainer-page[data-trainer="bremsen"] .nav button:nth-child(n+4){grid-column:span 3}.brake-learning-path{display:block;padding:16px}.brake-learning-path button{margin-top:14px;width:100%}.brake-rule summary{padding:13px}.brake-rule-detail{padding:0 13px 14px}.brake-calculator,.brake-procedures{padding:16px}.brake-calculator h2,.brake-procedures h2{font-size:21px}.brake-case-context,.brake-procedure-context,.brake-weight-groups fieldset{padding:12px}.brake-calc-totals{grid-template-columns:1fr;gap:12px}.brake-facts>div{grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr)}.brake-answer-checks li{grid-template-columns:1fr;gap:4px}.brake-exercise-links a{width:100%}}
