.personal-primary{margin-bottom:0!important}.personal-primary>div{width:100%}
.custom-algorithm>summary{display:flex;align-items:center;list-style:none;cursor:pointer}.custom-algorithm>summary::-webkit-details-marker{display:none}.custom-algorithm>summary:after{content:'+'!important;margin-left:auto}.custom-algorithm[open]>summary:after{content:'−'!important}
.personal-toolbar{display:flex;align-items:center;gap:10px;padding:10px 0 13px;font-size:11px}
.alternatives-toggle{display:flex;align-items:center;gap:8px;min-height:30px;border:1px solid #d5e5dd;background:#f0f7f3;color:#22634c;border-radius:7px;padding:6px 10px;cursor:pointer;font:inherit;font-weight:600}.alternatives-toggle span{border-radius:4px;background:#dcece3;padding:1px 5px}.alternatives-toggle b{font-size:13px}.alternatives-toggle[aria-expanded="true"] b{transform:rotate(180deg)}
.preference-status{color:#7c9587;font-size:10px}.restore-original{margin-left:auto;background:none;border:0;font:inherit;color:#718c7d;cursor:pointer;padding:7px 0}.restore-original:hover{text-decoration:underline}
.algorithm-editor{padding-bottom:16px}.editor-intro{display:flex;justify-content:space-between;align-items:center;padding:3px 0 12px;font-size:12px;color:#536e60;font-weight:600}.editor-intro small{font-size:10px;color:#8c9f94;font-weight:400}
.alternative-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.alternative-card{position:relative;padding:14px 15px;background:#f7faf8;border:1px solid #e0eae4;border-radius:10px;min-width:0}.alternative-card.is-preferred{background:#edf7f0;border-color:#77b799}.alternative-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:#305e48}.alternative-heading small{font-size:10px;font-weight:400;color:#769885}.alternative-card .algorithm-text{font-size:14px;font-weight:600;line-height:1.75;color:#365849;margin:9px 0 12px;overflow-wrap:anywhere}.alternative-card button{padding:7px 11px;border:1px solid #bdd9ca;border-radius:6px;background:white;color:#266d51;font:inherit;font-size:11px;cursor:pointer}.alternative-card button:disabled{border-color:transparent;background:transparent;color:#408665;cursor:default;padding-left:0}
.custom-algorithm{margin-top:12px;border:1px dashed #d3e0d7;border-radius:9px;padding:0 13px}.custom-algorithm summary{padding:12px 0!important;min-height:0!important;font-size:11px!important;font-weight:500!important}.custom-algorithm summary:after{font-size:15px!important}.custom-algorithm form{padding-bottom:13px}.custom-algorithm label{display:block;font-size:11px;color:#658473;margin-bottom:6px}.custom-algorithm textarea{width:100%;box-sizing:border-box;min-height:60px;resize:vertical;border:1px solid #cadcd1;border-radius:7px;padding:10px 11px;background:white;color:#294f3d;font:600 14px/1.65 ui-monospace,monospace}.custom-algorithm textarea:focus{outline:2px solid #92c8ad;outline-offset:1px}.custom-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.custom-bottom small{font-size:10px;color:#93a399}.custom-bottom button{white-space:nowrap;font:inherit;font-size:11px;background:#11675b;border:0;border-radius:6px;color:white;padding:9px 12px;cursor:pointer}.algorithm-feedback{color:#267251;font-size:11px;line-height:1.6;margin:10px 0 0}.algorithm-feedback:empty{display:none}.algorithm-feedback.error{color:#b0473e}.local-save-note{color:#9aa99f;font-size:10px;line-height:1.5;margin:12px 0 0}
.algorithm-drawer{box-sizing:border-box;border:1px solid #d5e4db;background:#fff;color:#294c3b;padding:20px;border-radius:18px;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}.algorithm-drawer::backdrop{background:#173f346e;backdrop-filter:blur(3px)}.drawer-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.drawer-heading small{font-size:10px;color:#8aa091}.drawer-heading h2{font-size:18px;margin-top:3px}.drawer-heading button{border:0;background:#edf3ef;color:#6c8777;width:30px;height:30px;border-radius:50%;font-size:22px;cursor:pointer}.drawer-current{display:grid;grid-template-columns:58px 1fr;gap:14px;padding:12px;background:#f0f6f2;border-radius:10px;margin:14px 0}.drawer-current img{width:58px;height:58px;object-fit:contain}.drawer-current span{font-size:10px;color:#729382}.drawer-current p{font-size:12px;font-weight:600;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.drawer-done{width:100%;border:0;background:#11675b;color:white;font:inherit;font-size:12px;padding:12px;border-radius:8px;cursor:pointer}.algorithm-drawer .alternative-cards{grid-template-columns:1fr}.algorithm-drawer .algorithm-editor{padding-bottom:12px}.algorithm-drawer .alternative-card{padding:12px}.algorithm-drawer .alternative-card .algorithm-text{font-size:13px;line-height:1.65;margin-bottom:8px}.algorithm-drawer .alternative-card button{min-height:34px}.algorithm-drawer .editor-intro{padding-bottom:10px}
html[data-compact-device] body[data-view="practice"] .personal-toolbar{padding:4px 0 7px;gap:7px}html[data-compact-device] body[data-view="practice"] .personal-toolbar .alternatives-toggle{min-height:27px;padding:4px 7px;font-size:10px}html[data-compact-device] body[data-view="practice"] .preference-status{font-size:9px}html[data-compact-device] body[data-view="practice"] .restore-original{font-size:9px;padding:5px 0}
[data-theme="dark"] :is(.alternative-card,.drawer-current,.custom-algorithm textarea,.algorithm-drawer){background:#243a32;border-color:#3a5548;color:#dbe9df}[data-theme="dark"] .alternative-card.is-preferred{background:#274e3c;border-color:#608f73}[data-theme="dark"] :is(.alternatives-toggle,.alternative-card button,.drawer-heading button){background:#2b4639;border-color:#527564;color:#c3e2d0}[data-theme="dark"] .alternatives-toggle span{background:#466454}[data-theme="dark"] :is(.alternative-heading,.alternative-card .algorithm-text,.editor-intro,.drawer-current p){color:#d2e6d9}[data-theme="dark"] .custom-algorithm{border-color:#4d6859}[data-theme="dark"] .algorithm-feedback{color:#86c8a2}[data-theme="dark"] .algorithm-feedback.error{color:#efaaa0}
@media(max-width:600px){.alternative-cards{grid-template-columns:1fr}.algorithm-drawer{padding:15px;max-height:calc(100dvh - 16px)}.custom-bottom{align-items:flex-start;flex-direction:column;gap:7px}.custom-bottom button{width:100%}.algorithm-drawer .editor-intro small{font-size:9px}}
@media(max-width:600px) and (max-height:700px){
  html[data-compact-device] body[data-view="practice"]{--compact-gap:6px}
  html[data-compact-device] body[data-view="practice"] .practice-timing{grid-template-rows:auto 60px;padding-top:9px;padding-bottom:8px}
  html[data-compact-device] body[data-view="practice"] .previous-case-card{height:60px}
  html[data-compact-device] body[data-view="practice"] .practice-navigation button{min-height:40px;padding-top:8px;padding-bottom:8px}
  html[data-compact-device] body[data-view="practice"] .practice-timing #currentButton{min-height:20px;padding-top:1px;padding-bottom:1px}
  html[data-compact-device] body[data-view="practice"] .personal-toolbar{padding-bottom:5px}
}
