.exam-entry-tabs{display:flex;gap:8px;margin:12px 0 16px;flex-wrap:wrap}
.exam-entry-tabs button{flex:1;min-width:180px;min-height:46px;padding:10px 14px;border:1px solid #c6d9e1;border-radius:9px;background:#fff;color:#184b6d;font:inherit;font-size:15px;font-weight:650;line-height:1.4;cursor:pointer}
.exam-entry-tabs [data-entry-tab="original"],.exam-entry-tabs [data-exam="tab-original"]{background:#005f91;color:#fff;border-color:#005f91}
.exam-entry-tabs [aria-selected="true"]{box-shadow:0 0 0 2px #fff,inset 0 -3px #ffffff75;outline:2px solid #005f91;outline-offset:0}
.exam-entry-tabs [data-entry-tab="simulation"][aria-selected="true"],.exam-entry-tabs [data-exam="tab-simulation"][aria-selected="true"]{background:#eee8f7;color:#594078;outline-color:#8e76ad;border-color:#aa96c5}
[data-exam-entry] [hidden],.exam-workspace [hidden]{display:none!important}
[data-exam-entry] p{margin:10px 0;font-size:15px;line-height:1.6}
[data-exam-entry] .exam-entry-scope{color:#49616b;font-size:14px}
.exam-entry-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;margin:12px 0}
.exam-entry-field select{box-sizing:border-box;width:100%;max-width:100%;font:inherit;line-height:1.4;color:#234854;background:#fff;border:1px solid #bed0d6;border-radius:8px;min-height:44px;padding:10px}
.exam-entry-options{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.exam-entry-options .exam-entry-field{flex:1;min-width:220px}
.exam-entry-check{display:flex;gap:8px;align-items:center;font-size:14px}.exam-entry-check input{width:18px;height:18px;accent-color:#08777b}
.exam-entry-start{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border-radius:9px;text-decoration:none;font-size:15px;font-weight:700;box-sizing:border-box}
.exam-entry-zhaw,.exam-workspace [data-exam="start-original"]{background:#005f91!important;border-color:#005f91!important;color:#fff!important}
.exam-entry-ai{background:#eee8f7;color:#594078;border:1px solid #aa96c5}
.exam-entry-tabs [data-entry-tab="simulation"],.exam-entry-tabs [data-exam="tab-simulation"],.exam-entry-tabs [data-entry-tab="simulation"][aria-selected="true"],.exam-entry-tabs [data-exam="tab-simulation"][aria-selected="true"],.exam-entry-ai{background:#6650a8;color:#fff;border-color:#6650a8}
.exam-entry-tabs [data-entry-tab="simulation"][aria-selected="true"],.exam-entry-tabs [data-exam="tab-simulation"][aria-selected="true"]{outline-color:#6650a8}
.exam-entry-downloads{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:14px}.exam-entry-downloads button{border:0;background:none;padding:5px 0;font:inherit;font-size:14px;color:#005f91;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.exam-entry-downloads button:disabled{opacity:.5;cursor:default}
[data-entry-original-untimed]{margin:6px 0}.exam-entry-check:has([data-entry-original-untimed]){margin-bottom:12px}
.exam-entry-saved{margin-top:20px;border-top:1px solid #dedacb;padding-top:14px}.exam-entry-saved h3{font-size:17px;margin:0 0 10px}.exam-entry-saved article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #e5e8e8}.exam-entry-saved article:last-child{border-bottom:0}.exam-entry-saved article>div:first-child{min-width:0}.exam-entry-saved strong{font-size:14px;overflow-wrap:anywhere}.exam-entry-saved article p{font-size:13px;margin:4px 0;color:#526872}.exam-entry-saved a{font-size:14px;color:#365765;white-space:nowrap;text-underline-offset:3px}.exam-entry-saved-actions{display:flex;gap:12px;flex-wrap:wrap}
html[data-exam-view="upload"] #examWorkspace{display:none!important}.exam-upload-standalone{margin-top:20px}.exam-upload-standalone .exam-import-panel{margin-top:0}.exam-upload-standalone h2{margin-top:0;font-size:21px}.exam-upload-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.exam-upload-field{display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px;border:1px solid #cad8df;border-radius:10px;background:#fff}.exam-upload-field label{font-weight:700;margin:0!important}.exam-upload-field input{max-width:100%;box-sizing:border-box}.exam-upload-field small{color:#526872;font-size:13px;line-height:1.5}.exam-upload-caution{padding:12px 15px;border-left:3px solid #d89b22;background:#fff9e8;border-radius:6px;font-size:14px;line-height:1.6}.exam-upload-standalone .personal-exam-list{margin-top:24px}
@media(max-width:600px){.exam-upload-fields{grid-template-columns:1fr;gap:12px}.exam-entry-saved article{align-items:flex-start;flex-wrap:wrap}.exam-entry-downloads{gap:5px 18px}.exam-entry-saved-actions{gap:16px}}
[data-exam-entry] .exam-entry-meta,[data-exam-entry] small{display:block;font-size:14px;color:#526872;line-height:1.5;margin:9px 0}
.exam-entry-upload{margin-top:18px;padding-top:14px;border-top:1px solid #dedacb}.exam-entry-upload a{color:#3e5e68;font-size:14px;font-weight:600;text-underline-offset:3px}.exam-entry-upload small{margin-bottom:0!important}
.exam-entry-tabs button:focus-visible,[data-exam-entry] a:focus-visible,[data-exam-entry] select:focus-visible{outline:3px solid #08777b;outline-offset:3px}
.exam-workspace .exam-scope{border-radius:14px}.exam-workspace .exam-outline{margin-top:16px}.exam-workspace .exam-outline h4{margin-bottom:8px}
.exam-workspace .exam-entry-tabs{margin-bottom:22px}.exam-workspace .exam-original-picker{margin-top:0}
.exam-page-loading{max-width:720px;padding:22px;border:1px solid #e5cf8c;border-radius:14px;background:#fff9e8}.exam-page-loading h2{margin:0 0 10px;font-size:22px}.exam-page-loading p{font-size:15px;line-height:1.6}.exam-page-loading [role="status"]{color:#526872;font-size:14px}
.password-control{position:relative;width:100%}.password-control input{box-sizing:border-box;width:100%;padding-right:52px!important}.password-control input[type="text"]{padding:13px;border:1px solid #bdd2d2;border-radius:8px;font:inherit}
.password-control .password-visibility{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:44px;min-height:44px;padding:10px;border:0;border-radius:6px;background:transparent;color:#436570;display:grid;place-items:center;cursor:pointer}
.password-visibility svg{width:22px;height:22px}.password-visibility:hover{background:#edf5f4}.password-visibility:focus-visible{outline:2px solid #08777b;outline-offset:-2px}
.chapter-card>.head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.chapter-card .chapter-toggle{width:100%;min-width:0;grid-column:1;grid-row:1}.chapter-card>.head>.chapter-access{grid-column:2;grid-row:1;float:none;margin:0 64px 0 8px;white-space:nowrap}.chapter-card>.head>.chapter-mini-progress{grid-column:1/-1;grid-row:2;width:100%}
.statistics-module-active .chapter-access{background:#e7f3eb;color:#275e42!important;border:1px solid #c9dfd0;border-radius:999px;padding:4px 9px;font-size:13px}
.card:not(.chapter-card)>.head>.chapter-access{margin-right:4px}
#summaryPreview .script-chapter-group>summary{display:flex;align-items:center;gap:12px;list-style:none}
#summaryPreview .script-chapter-group>summary::before{content:"▸";font-size:12px;flex:none}#summaryPreview .script-chapter-group[open]>summary::before{content:"▾"}#summaryPreview .script-chapter-group>summary::-webkit-details-marker{display:none}
#summaryPreview .script-chapter-group>summary>span{margin:0;min-width:0;font-size:12px}#summaryPreview .script-chapter-group>summary>b{flex-shrink:0}
#summaryPreview .script-chapter-group>summary .summary-favorite{position:static;transform:none;margin-left:auto;flex:0 0 36px;width:36px;height:36px;border:1px solid #c9d9de;border-radius:8px;background:#fff;color:#607781;font:24px/1 Arial;cursor:pointer}
#summaryPreview .script-topic-group>summary,#summaryPreview .script-section>summary{gap:12px}
#summaryPreview summary .summary-favorite[aria-pressed="true"],#summaryPreview summary .summary-favorite[aria-pressed="true"]:hover{color:#d89b22;background:#fff5da;border-color:#dfbd69}
.block .block-actions{gap:12px;flex-shrink:0}.block .block-favorite[aria-pressed="true"]{color:#d89b22;background:#fff5da;border-color:#dfbd69}
.exam-upload-standalone #examImportForm .exam-check{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:10px}.exam-upload-standalone #examImportForm .exam-check span{flex:1;min-width:0;padding-left:0}.exam-upload-standalone #examUploadRights{width:18px;flex:0 0 18px;margin-top:3px}
@media(max-width:520px){.block .block-actions{grid-column:2}}
@media(max-width:600px){.exam-entry-tabs{gap:9px}.exam-entry-tabs button{min-width:130px;font-size:14px;padding:10px}.exam-entry-options{gap:0}.exam-entry-check{margin:0 0 15px}.exam-entry-start{width:100%}.chapter-card>.head>.chapter-access{margin-right:56px;margin-left:0;font-size:12px;padding:4px 7px}.chapter-toggle-meta{gap:5px}}

/* Existing exam surfaces: open results and a chapter-based learning profile. */
.exam-entry-saved .exam-results-table{margin:14px 0;max-width:100%;overflow:auto}
.exam-results-table table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
.exam-results-table caption{text-align:left;font-size:16px;font-weight:750;padding:0 0 10px;color:#123b49}
.exam-results-table th,.exam-results-table td{padding:10px 12px;border-bottom:1px solid #d9e6e8;vertical-align:top}
.exam-results-table thead{background:#f1f7f6}
.exam-results-table tbody th{font-weight:600}
.exam-results-table a{color:#087d80;font-weight:650;white-space:nowrap}
.exam-all-results{margin-top:8px}
.exam-chapter-profile{margin:22px 0;padding:20px;border:1px solid #d5e4e5;border-radius:12px;background:#fff}
.exam-chapter-profile figcaption h4{margin:0;font-size:20px;color:#123b49}
.exam-chapter-profile figcaption p{margin:5px 0 12px;color:#5e757c;font-size:14px}
.exam-profile-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;margin:12px 0}
.exam-profile-legend span{display:flex;align-items:center;gap:6px}
.exam-profile-legend i{width:11px;height:11px;border-radius:3px;background:#087d80}
.exam-profile-legend span+span i{background:#f7e8bd}
.exam-profile-row{display:grid;grid-template-columns:minmax(170px,1.25fr) minmax(90px,1fr) 104px;align-items:center;gap:16px;padding:12px 0;border-top:1px solid #edf2f2}
.exam-profile-row b{font-size:13px;line-height:1.4;display:block}
.exam-profile-row small{display:block;font-size:12px;color:#657b82;font-weight:400;margin-top:3px}
.exam-profile-row>strong{text-align:right;font-size:15px}
.exam-profile-track{height:13px;border-radius:5px;overflow:hidden;background:#f7e8bd}
.exam-profile-track i{display:block;height:100%;background:#087d80;border-radius:5px}
.exam-profile-row.is-unmeasured .exam-profile-track{background:#edf1f2}
.exam-profile-focus{font-size:13px;line-height:1.6;background:#f3f8f6;padding:11px 13px;border-radius:8px}
@media(max-width:600px){.exam-chapter-profile{padding:16px}.exam-profile-row{grid-template-columns:minmax(0,1fr) 98px;gap:8px 12px}.exam-profile-track{grid-row:2;grid-column:1/-1}.exam-profile-row>strong{grid-column:2;grid-row:1}.exam-results-table{overflow:auto}.exam-results-table table{min-width:630px}}
/* Progress is neutral; completed account actions are green. */
#formStatus.form-status{color:#607780}
#formStatus.form-status.success,.auth-email-sent .email-success-icon,.form-status.success{color:#17744a}
#formStatus.form-status.error{color:#a83232}
.auth-email-sent .email-success-icon{background:#e9f6ed}


/* Readable exam facts and a single, prominent route back to the active attempt. */
[data-exam-entry] .exam-entry-overview{margin:18px 0 22px;color:#164e60}
.exam-entry-paper-title{font-size:16px;font-weight:650;line-height:1.45;margin:0 0 12px}
.exam-entry-metrics{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 20px}
.exam-entry-metric{flex:1 1 110px;padding:15px 18px;background:#fffdf6;border:1px solid #d8cda9;border-radius:10px;min-width:0;color:#194958;line-height:1.35}
.exam-entry-metric strong{display:block;font-size:30px;line-height:1.15;font-weight:750;color:#075870;margin-bottom:5px;font-variant-numeric:tabular-nums}
.exam-entry-metric span{font-size:15px;font-weight:600}
.exam-entry-active{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin:0 0 22px;border:2px solid #08777b;border-left-width:6px;border-radius:12px;background:#edf8f5;color:#16494a}
.exam-entry-active strong{font-size:19px;color:#075859}
[data-exam-entry] .exam-entry-active p,.exam-entry-active p{font-size:14px;line-height:1.5;margin:6px 0 0}
.exam-entry-active .exam-entry-resume{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;flex-shrink:0;border-radius:8px;background:#08777b;color:#fff;font-size:15px;font-weight:700;text-decoration:none}
[data-exam-start-blocked]{opacity:.5;cursor:not-allowed!important;text-decoration:none!important}
[data-unavailable-reason]{opacity:.65;cursor:help!important}
.exam-action-hint{flex-basis:100%;max-width:100%;margin:8px 0 12px;color:#315d65;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.exam-action-hint a{display:inline-block;font-weight:700}
.exam-attempt-delete{border:0;background:none;color:#8b3b34;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px}
.exam-delete-dialog{box-sizing:border-box;width:min(520px,calc(100% - 32px));border:1px solid #c5d9d7;border-radius:16px;padding:25px;color:#193c42;background:#fff;box-shadow:0 16px 60px #122f4340}
.exam-delete-dialog::backdrop{background:#0f283766}
.exam-delete-dialog h2{font-size:22px;line-height:1.3;margin:0 0 16px}
.exam-delete-dialog p{font-size:15px;line-height:1.6;margin:12px 0}
.exam-delete-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.exam-delete-actions button{font:inherit;font-weight:650;min-height:44px;padding:10px 14px;border-radius:8px;cursor:pointer}
.exam-delete-actions [data-delete-cancel]{background:#08777b;color:#fff;border:1px solid #08777b}
.exam-delete-actions [data-delete-confirm]{background:#fff;color:#8b3b34;border:1px solid #ccaba5}
.exam-delete-actions button:focus-visible,.exam-entry-resume:focus-visible,.exam-attempt-delete:focus-visible{outline:3px solid #08777b;outline-offset:3px}
@media(max-width:600px){.exam-entry-metric{flex-basis:calc(50% - 12px);box-sizing:border-box;padding:12px}.exam-entry-metric strong{font-size:27px}.exam-entry-active{align-items:stretch;flex-direction:column;padding:16px}.exam-entry-active .exam-entry-resume{align-self:flex-start}.exam-delete-actions button{flex:1 1 160px}}
.auth-code-form{display:grid;gap:10px;max-width:320px;margin:18px auto 6px;text-align:left}
.auth-code-form label{font-weight:700;font-size:14px;color:#1d3d45}
.auth-code-form input{font-size:26px;letter-spacing:.3em;text-align:center;padding:12px 10px;border:1.5px solid #b9cfd2;border-radius:12px;font-variant-numeric:tabular-nums;width:100%;box-sizing:border-box}
.auth-code-form input:focus{outline:3px solid #0a929255;border-color:#0a9292}
.auth-code-form .button{width:100%}
.auth-email-sent [data-confirmation-status]:empty{display:none}
.auth-code-form input::placeholder{letter-spacing:normal;font-size:16px;color:#8aa3a8}
