/* Existing Kautech identity, shared with the Förderplan app. */
:root{--ink:#182c40;--navy:#182c40;--paper:#f2f4f6;--white:#fff;--blue:#234766;--blue-soft:#e6edf3;--mint:#b59563;--mint-dark:#315a40;--yellow:#e8d6b5;--red:#a33445;--line:#d5dce2;--muted:#526271;--shadow:0 2px 10px #182c4009;font-family:Arial,Helvetica,sans-serif}
body{background:var(--paper)}
.topbar{background:#fff;border-bottom:3px solid var(--navy);box-shadow:0 2px 10px #182c4010;backdrop-filter:none;gap:20px}
.brand{gap:18px;min-width:0}.brand-logo{display:block;width:163px;height:auto;flex:none}.brand-divider{height:36px;width:1px;background:#c6ced5;flex:none}.brand-product{font-size:1.03rem;line-height:1.4}.brand-product strong{display:block;font-size:.875rem;color:#596979;font-weight:400}
.app-shell{padding-top:32px}.intro-panel{padding:12px 0}.start-grid{gap:42px;align-items:start}.intro-panel h1,.memory-progress+.start-grid .intro-panel h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.12;letter-spacing:-.035em}.lead{font-size:1.0625rem}.eyebrow{color:#745c39;letter-spacing:.12em}
.setup-card,.task-card,.source-card,.profile-card,.memory-progress,.paper-card,.result-hero{border-radius:12px;box-shadow:var(--shadow)}
.feature-row{margin-top:24px}.feature-row span{border-radius:6px;background:#e6ebf0;color:#243e56;border-color:#d5dce2}
.exam-note{background:#fbfcfd;border-left:4px solid #b59563;border-radius:5px}.exam-note span{color:#425668}
.level-option{border-radius:8px;border-width:1px}.level-option:has(input:checked){border-color:#526f89;background:#e6edf3;box-shadow:inset 3px 0 #b59563}
.primary-button,.submit-answer{background:#182c40;border:1px solid #182c40;border-radius:8px;box-shadow:none;font-weight:700}.primary-button:hover,.submit-answer:hover{background:#294761;transform:none}
.hint-button,.tool-button,.dictionary-button,.compact-button,.text-button{border-radius:7px;color:#243e56}.hint-button{border-color:#bac6cf}.hint-button:hover,.compact-button:hover,.text-button:hover{background:#eef2f5}
.annotation-toolbar{background:#f8f9fa;border-color:#d5dce2;border-radius:8px}.tool-button.active{background:#e6edf3;color:#182c40;border-color:#526f89;box-shadow:inset 0 -2px #b59563}.source-card p{color:#354d62}.tool-swatch.marker{background:#e8d6b5}.mark-word.highlight{background:linear-gradient(transparent 12%,#e8d6b5 12%,#e8d6b5 90%,transparent 90%)}.range-pending{outline-color:#745c39;background:#f7eddf}
.source-card .annotation-toolbar{background:#edf3ff;border-color:#b8c9ea;border-radius:12px}
.skill-badge{background:#e6ebf0;color:#243e56;border-radius:6px}.progress-track,.bar{background:#e3e8ed}.progress-track span,.bar span{background:#234766}
.answer-option{border-radius:8px;border-width:1px}.answer-option:hover:not(:disabled){border-color:#526f89;background:#f1f4f6}.answer-option.correct{border-color:#315a40;background:#e8f0e9}.answer-option.wrong{border-color:#a33445;background:#fbedef}.option-key{border-radius:5px;background:#e6ebf0}
.activity-card,.recommendation{background:#fbf8f2;border-color:#d9c7a9;border-radius:8px}.activity-card p{color:#5a4a33}.feedback{background:#e8f0e9;border-radius:6px}.feedback.error{background:#fbedef}.writing-area,.field-answer,.dictionary-search input{border-color:#b7c3ce;border-radius:7px}.writing-area:focus{outline-color:#294f7040;border-color:#294f70}.writing-area::placeholder,.field-answer::placeholder{color:#697987}:focus-visible{outline-color:#294f70}
.dictionary-chips button{background:#f1f4f6;color:#243e56;border-color:#bac6cf}.dictionary-context{border-color:#b59563}.dictionary-panel{border-radius:8px}.dictionary-search button{background:#182c40}
.memory-next{background:#e6edf3;color:#243e56;border-radius:8px}.memory-bar{accent-color:#234766}.memory-bar::-webkit-progress-value{background:#234766}.memory-bar::-moz-progress-bar{background:#234766}.memory-node{background:#f8f9fa;border-color:#bac6cf;color:#526271}.done .memory-node{background:#315a40;border-color:#315a40;color:white}.current .memory-node{background:#182c40;border-color:#182c40;outline-color:#d9c7a9;color:white}.current .memory-node-label{color:#182c40}.memory-save,.memory-task-list span{color:#425668}
.result-hero{border-top:4px solid #b59563}.result-hero::after{display:none}.result-hero .eyebrow{color:#dbc59f}.result-hero .lead,.score-ring span{color:#d5dce2}.score-ring{border-color:#526271;border-top-color:#b59563;border-right-color:#b59563;transform:none}.score-ring>*{transform:none}
.paper-info{background:#f1f4f6;border-color:#bac6cf;border-radius:8px}.paper-lesson{background:#fbfcfd;border-left-color:#b59563;border-radius:8px}.paper-step,.paper-level{border-radius:7px}.paper-drop{border-color:#728197;border-radius:8px}.paper-drop.over{background:#e8f0e9}.paper-image-wrap,.paper-zoom-wrap,.paper-pdf-frame{background:#e6ebf0}.paper-workspace select{border-color:#b7c3ce}.paper-feedback{background:#e8f0e9;border-radius:8px}.paper-warning,.paper-status{background:#f7eddf;border-color:#b59563;color:#664923}.mobile-task-nav{border-radius:8px;box-shadow:0 -2px 10px #182c4009}.format-help{border-radius:8px}.capture-file{border-radius:8px}
@media(max-width:850px){.topbar{flex-wrap:wrap;padding:14px 16px;gap:12px}.brand>span.brand-product{display:block}.brand-logo{width:130px}.brand{gap:12px}.brand-product{font-size:.95rem}.paper-top-actions{margin-left:auto}.start-grid{gap:24px}.brand>span.brand-divider{display:block}}
@media(max-width:420px){.brand-logo{width:108px}.brand-divider{height:30px}.brand-product{font-size:.875rem}.brand-product strong{font-size:.875rem}.app-shell{padding-top:24px}.paper-top-actions{width:100%;justify-content:flex-end}.feature-row{gap:6px}}
@media print{body{background:white}.topbar{display:none}.setup-card,.task-card,.source-card,.profile-card,.memory-progress,.paper-card{box-shadow:none}.mark-word.highlight{background:#e8d6b5;print-color-adjust:exact}.paper-feedback{background:white}}

/* Comfortable ragged-right reading in paper mode and printed tasks. */
.paper-material{max-width:72ch;margin-inline:auto;padding-top:8px}
.paper-material>p,.paper-material .reference-line,#sourceText .markable-text,#sourceText .reference-line{text-align:left;text-align-last:auto;word-spacing:normal;letter-spacing:normal}
.paper-material>p{line-height:1.75;margin-block:20px}
.paper-material ol{text-align:left;padding-left:24px}
.paper-material li{padding-left:6px;margin-bottom:18px}
.paper-download{border-top:3px solid #b59563}
@media print{.paper-material{max-width:none}.paper-material>p{line-height:1.5}}
