.legal-practice{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:#f6f5ed;color:#243c3a;gap:0;font-size:16px}.legal-practice:not([open]){display:none}.legal-practice[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}.legal-practice::backdrop{background:#f6f5ed}.legal-practice>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 32px;background:#34584b;color:#fffdf1}.legal-practice header small{font-size:12px;color:#d7e3d4}.legal-practice h1{font-size:25px;margin:3px 0 0}.legal-practice button{font:inherit;cursor:pointer;padding:11px 18px;min-height:44px;border:1px solid #cbd6c9;border-radius:12px;background:#fffef7;color:#26483d}.legal-practice button:disabled{cursor:default;opacity:.55}.legal-practice button.primary{background:#306b59;color:#fff;border-color:#306b59}.legal-practice :is(button,select,input):focus-visible{outline:3px solid #d29c42;outline-offset:3px}.legal-practice .lp-main{overflow:auto;overscroll-behavior:contain;padding:30px max(24px,calc((100vw - 1120px)/2)) 50px;min-height:0;scrollbar-gutter:stable}.legal-practice .lp-intro h2{font-size:28px;margin:4px 0 10px}.legal-practice .lp-intro p{color:#667c70;margin-bottom:26px}.legal-practice .lp-setup{display:grid;gap:24px;background:#fffef8;padding:28px;border:1px solid #d5decf;border-radius:20px}.legal-practice .lp-field{display:grid;gap:10px;font-size:18px;font-weight:700}.legal-practice select{font:inherit;font-size:17px;min-height:52px}.legal-practice .lp-methods{margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.legal-practice .lp-methods legend{font-size:18px;font-weight:700;padding:0;margin-bottom:12px}.legal-practice .lp-method{display:flex;gap:12px;padding:20px 16px;border:2px solid #dbe3d6;border-radius:14px;cursor:pointer;align-items:start}.legal-practice .lp-method:has(input:checked){border-color:#306b59;background:#edf5e9}.legal-practice .lp-methods:disabled .lp-method{opacity:.5;cursor:default}.legal-practice .lp-method input[type=radio]{appearance:auto;width:20px;height:20px;min-width:20px;padding:0;margin:2px 0;accent-color:#306b59}.legal-practice .lp-method span{display:grid;gap:8px}.legal-practice .lp-method small{font-size:14px;font-weight:400;line-height:1.7;color:#587163}.legal-practice .lp-start{min-height:54px;font-size:18px;font-weight:700}.legal-practice .lp-note,.legal-practice .lp-source{color:#63796d;font-size:14px;line-height:1.7;margin:0}.legal-practice .lp-toolbar,.legal-practice .lp-progress{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.legal-practice .lp-toolbar span{font-size:16px;font-weight:700}.legal-practice .lp-progress{background:#e7efdf;padding:14px 20px;border-radius:12px}.legal-practice .lp-progress span{font-size:14px}.legal-practice .lp-question{background:#fffef8;border:1px solid #d5decf;border-radius:20px;padding:30px}.legal-practice .lp-stem{font-size:23px;font-weight:600;line-height:1.85;white-space:pre-wrap;margin:18px 0 28px;overflow-wrap:anywhere}.legal-practice .lp-choices{display:grid;gap:14px}.legal-practice .lp-option{display:flex;text-align:left;align-items:flex-start;gap:16px;padding:18px 20px;line-height:1.8;white-space:pre-wrap}.legal-practice .lp-option>b{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#eef1e7;line-height:1}.legal-practice .lp-option[aria-checked=true]{border:2px solid #306b59;background:#edf5e9}.legal-practice .lp-option[aria-checked=true]>b{background:#306b59;color:#fff}.legal-practice .lp-option:disabled{opacity:1;color:#243c3a}.legal-practice .lp-status{line-height:1.8;margin:20px 0;white-space:pre-wrap}.legal-practice .lp-correct{padding:15px;border-radius:10px;background:#e3f1df;color:#23573e;font-weight:700}.legal-practice .lp-incorrect{padding:15px;border-radius:10px;background:#fcebdd;color:#9a4524;font-weight:700}.legal-practice .lp-answer{display:grid;gap:16px}.legal-practice .lp-answer h3{margin:0}.legal-practice details{padding:16px;border:1px solid #d5decf;border-radius:12px}.legal-practice summary{cursor:pointer;font-weight:700}.legal-practice .lp-explanation{white-space:pre-wrap;line-height:1.85;padding-top:15px}.legal-practice .lp-navigation{display:flex;justify-content:space-between;gap:16px;margin-top:30px;padding-top:24px;border-top:1px solid #e0e4d7}.legal-practice .lp-result-score{font-size:36px;font-weight:700;padding:28px;color:#306b59}.legal-practice .lp-result-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:24px 0}.in-legal-practice #stage{pointer-events:none}
@media(max-width:700px){.legal-practice>header{padding:14px 16px}.legal-practice h1{font-size:21px}.legal-practice .lp-main{padding:20px 14px 30px}.legal-practice .lp-setup,.legal-practice .lp-question{padding:20px 16px;border-radius:15px}.legal-practice .lp-methods{grid-template-columns:1fr}.legal-practice .lp-method{padding:14px}.legal-practice .lp-stem{font-size:20px}.legal-practice .lp-option{padding:14px 12px;gap:10px}.legal-practice .lp-toolbar{gap:10px}.legal-practice .lp-intro h2{font-size:24px}}

.legal-practice .lp-option{justify-content:flex-start;font-size:16px}.legal-practice .lp-method{font-size:16px}.legal-practice .lp-method b{font-size:17px}

@media(min-width:701px){.legal-practice .lp-setup{grid-template-columns:1fr 1fr}.legal-practice .lp-setup>:not(.lp-field){grid-column:1/-1}}

/* Keep the live classroom visible around the practice window and beside the tutor. */
.legal-practice{inset:108px 24px 22px;margin:0 auto;width:calc(100vw - 48px);height:calc(100dvh - 130px);max-width:1500px;background:transparent;overflow:visible;pointer-events:none}
.legal-practice[open]{grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto minmax(0,1fr);gap:0 24px}
.legal-practice::backdrop{background:#17362b12}
.legal-practice>header{grid-column:1;grid-row:1;padding:14px 22px;border-radius:20px 20px 0 0;pointer-events:auto;box-shadow:0 8px 30px #19382c22}
.legal-practice h1{font-size:23px}
.legal-practice .lp-main{grid-column:1;grid-row:2;padding:20px 22px 30px;background:#faf9f2f7;border-radius:0 0 20px 20px;pointer-events:auto;box-shadow:0 18px 40px #19382c33}
.legal-practice .lp-intro h2{font-size:24px}.legal-practice .lp-intro p{margin-bottom:20px}.legal-practice .lp-setup{padding:22px;gap:20px}.legal-practice .lp-method{padding:16px 12px}.legal-practice .lp-method small{font-size:13px}.legal-practice .lp-question{padding:22px}.legal-practice .lp-stem{font-size:21px;margin:15px 0 22px}.legal-practice .lp-toolbar{margin-bottom:14px}.legal-practice .lp-progress{margin-bottom:18px}
.legal-practice .lp-tutor{grid-column:2;grid-row:1/3;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:12px;pointer-events:auto;position:relative}
.legal-practice .lp-tutor-speech{position:relative;flex:0 1 auto;min-height:70px;max-height:55%;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;background:#fffdf4;border:2px solid #82a98a;border-radius:22px 22px 22px 5px;padding:18px;box-shadow:0 10px 30px #17382c2b;color:#294d3e;scrollbar-gutter:stable}
.legal-practice .lp-tutor-speech>small{font-size:11px;color:#637e6a}.legal-practice .lp-tutor-speech h2{font-size:20px;line-height:1.5;margin:8px 0 10px}.legal-practice .lp-tutor-speech p{font-size:15px;line-height:1.85;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.legal-practice .lp-tutor-speech[data-result=correct]{border-color:#579b67}.legal-practice .lp-tutor-speech[data-result=incorrect]{border-color:#c49463}.legal-practice .lp-tutor-speech[data-result=incorrect] h2{color:#9a542b}.legal-practice .lp-tutor-speech[data-result=correct] h2{color:#267242}
.legal-practice .lp-tutor-analysis{padding-top:12px;margin-top:14px;border-top:1px solid #d9dfce}.legal-practice .lp-tutor-analysis h3{margin:0;font-size:15px;color:#426a53}.legal-practice .lp-tutor-speech .lp-note{font-size:12px;color:#71806c}
.legal-practice .lp-tutor-portrait{flex:1;min-height:120px;position:relative}.legal-practice .lp-tutor-portrait canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;filter:drop-shadow(0 12px 16px #21372944)}.legal-practice .lp-tutor-portrait canvas:active{cursor:grabbing}.legal-practice .lp-tutor-name{align-self:center;border-radius:30px;padding:8px 15px;background:#fffdf1e8;color:#38634e;font-size:14px;box-shadow:0 4px 16px #17382c22}.legal-practice .lp-tutor-fallback{display:block;text-align:center;background:#fffdf4;padding:20px;border-radius:18px}
body.in-legal-practice #panel{visibility:hidden}body.in-legal-practice #labels>.tag{visibility:hidden!important}
@media(max-width:1000px) and (min-width:761px){.legal-practice[open]{grid-template-columns:minmax(0,1fr) 250px;gap:0 16px}.legal-practice .lp-methods{grid-template-columns:1fr}.legal-practice .lp-method{padding:12px}.legal-practice .lp-main{padding:16px}}
@media(max-width:760px){.legal-practice{inset:105px 10px 12px;width:calc(100vw - 20px);height:calc(100dvh - 117px)}.legal-practice[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) 190px;gap:0}.legal-practice>header{padding:10px 14px;border-radius:15px 15px 0 0}.legal-practice h1{font-size:20px}.legal-practice .lp-main{padding:14px;border-radius:0 0 15px 15px}.legal-practice .lp-tutor{grid-column:1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;padding-top:10px}.legal-practice .lp-tutor-speech{grid-column:1;grid-row:1;max-height:180px;min-height:0;padding:12px;align-self:start}.legal-practice .lp-tutor-speech h2{font-size:17px;margin:3px 0}.legal-practice .lp-tutor-speech p{font-size:13px;line-height:1.7}.legal-practice .lp-tutor-portrait{grid-column:2;grid-row:1;min-height:0;height:166px}.legal-practice .lp-tutor-name{position:absolute;right:0;bottom:0;font-size:10px;padding:4px 8px}.legal-practice .lp-stem{font-size:19px}.legal-practice .lp-question,.legal-practice .lp-setup{padding:16px}.legal-practice .lp-methods{grid-template-columns:1fr}.legal-practice .lp-method{padding:12px}}

/* Keep action buttons outside the scrolling question and fit the available viewport. */
.legal-practice{--lp-top:clamp(74px,9dvh,88px);inset:var(--lp-top) 24px 16px;height:calc(100dvh - var(--lp-top) - 16px)}
.legal-practice[open]{grid-template-rows:auto minmax(0,1fr) auto}
.legal-practice>header{padding:10px 18px}.legal-practice h1{font-size:21px}.legal-practice .lp-tutor{grid-row:1/4}
.legal-practice .lp-main{padding:14px 16px 20px}.legal-practice .lp-main.lp-question-view{display:flex;flex-direction:column;gap:10px;overflow:hidden;padding:12px 14px;border-radius:0;box-shadow:none}
.legal-practice .lp-question-view>.lp-toolbar,.legal-practice .lp-question-view>.lp-progress{flex-shrink:0;margin:0}.legal-practice .lp-question-view>.lp-toolbar{gap:8px;min-height:38px}.legal-practice .lp-question-view>.lp-toolbar button{min-height:36px;padding:7px 12px;font-size:14px}.legal-practice .lp-question-view>.lp-progress{padding:9px 14px;gap:8px}.legal-practice .lp-question-view .lp-question{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:15px 18px;border-radius:14px;scrollbar-gutter:stable}
.legal-practice .lp-question-view .lp-source{font-size:12px}.legal-practice .lp-question-view .lp-stem{font-size:20px;line-height:1.65;margin:10px 0 16px}.legal-practice .lp-question-view .lp-choices{gap:9px}.legal-practice .lp-question-view .lp-option{padding:10px 14px;line-height:1.65;min-height:48px;gap:12px}.legal-practice .lp-question-view .lp-option[aria-checked=true]{padding:9px 13px}.legal-practice .lp-question-view .lp-answer:empty{display:none}
.legal-practice .lp-actions{grid-column:1;grid-row:3;display:grid;gap:7px;min-width:0;padding:9px 16px 12px;background:#fffdf5;border-top:1px solid #d5dece;border-radius:0 0 20px 20px;pointer-events:auto;box-shadow:0 12px 24px #19382c22;box-sizing:border-box}.legal-practice .lp-actions[hidden]{display:none!important}.legal-practice .lp-actions .lp-status{font-size:13px;line-height:1.5;margin:0;min-height:20px}.legal-practice .lp-actions .lp-status:is(.lp-correct,.lp-incorrect){padding:0;background:none;color:#526b59;font-weight:400}.legal-practice .lp-actions .lp-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;padding:0;margin:0;border:0}.legal-practice .lp-action-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;flex:1;min-width:0}.legal-practice .lp-action-buttons .lp-submit{min-width:min(240px,100%);font-weight:700}.legal-practice .lp-actions button{min-height:42px;padding:8px 14px;white-space:nowrap}
.legal-practice .lp-tutor-name{cursor:pointer;flex-shrink:0;background:#fffdf1;border-color:#a6baa0;font-weight:700;min-height:40px;padding:8px 15px}.legal-practice .lp-tutor-name:hover{background:#e6efdc}
.legal-practice .lp-tutor-chat{position:absolute;inset:0;z-index:3;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fffdf5;border:2px solid #82a98a;border-radius:20px;overflow:hidden;box-shadow:0 12px 36px #17392b44;min-height:0}.legal-practice .lp-tutor-chat[hidden]{display:none!important}.legal-practice .lp-tutor-chat>header{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:12px;background:#e7efdf;border-bottom:1px solid #d4dfcd;color:#305a46}.legal-practice .lp-tutor-chat>header>b{font-size:15px}.legal-practice .lp-tutor-chat>header button{font-size:12px;padding:5px 8px;min-height:32px;white-space:nowrap}.legal-practice .lp-tutor-chat-log{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:14px}.legal-practice .lp-chat-welcome{font-size:14px;line-height:1.8;color:#69806b}.legal-practice .lp-chat-message{border-radius:14px;background:#edf3e8;padding:11px 12px}.legal-practice .lp-chat-message.user{background:#e2f0f4;margin-left:15px}.legal-practice .lp-chat-message small{font-size:11px;color:#6b826f}.legal-practice .lp-chat-message p{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}.legal-practice .lp-tutor-chat-bottom{display:grid;gap:7px;padding:11px 12px;border-top:1px solid #dbe3d2;background:#fbfcf3}.legal-practice .lp-tutor-chat-bottom>small{font-size:11px;line-height:1.5;color:#70806c}.legal-practice .lp-tutor-chat form{display:flex;align-items:stretch;gap:7px;margin:0}.legal-practice .lp-tutor-chat textarea{flex:1;min-width:0;width:auto;min-height:78px;max-height:120px;resize:vertical;padding:9px;font:inherit;font-size:14px;line-height:1.7;border:1px solid #b9cbb3;border-radius:10px}.legal-practice .lp-tutor-chat form button{padding:8px 11px;min-width:48px}.legal-practice .lp-tutor-chat-status{font-size:12px;line-height:1.6;color:#54754f}.legal-practice .lp-tutor-chat-status:empty{display:none}
body.in-legal-practice .envbar{visibility:hidden}
@media(max-width:760px){.legal-practice{--lp-top:78px;inset:var(--lp-top) 10px 10px;height:calc(100dvh - var(--lp-top) - 10px)}.legal-practice[open]{grid-template-rows:auto minmax(0,1fr) auto 150px}.legal-practice>header{padding:8px 12px}.legal-practice .lp-tutor{grid-row:4;padding-top:7px}.legal-practice .lp-tutor-speech{max-height:143px;padding:9px 12px}.legal-practice .lp-tutor-portrait{height:137px}.legal-practice .lp-tutor-name{font-size:11px;min-height:28px;padding:3px 8px}.legal-practice .lp-question-view .lp-question{padding:12px}.legal-practice .lp-question-view .lp-stem{font-size:18px}.legal-practice .lp-question-view .lp-option{padding:9px 10px;gap:8px}.legal-practice .lp-question-view .lp-option[aria-checked=true]{padding:8px 9px}.legal-practice .lp-main.lp-question-view{padding:9px;gap:8px}.legal-practice .lp-toolbar span{font-size:12px}.legal-practice .lp-question-view>.lp-progress{font-size:12px;padding:7px 10px}.legal-practice .lp-progress span{font-size:11px}.legal-practice .lp-actions{padding:7px 10px 9px}.legal-practice .lp-actions .lp-navigation{gap:6px}.legal-practice .lp-actions button{font-size:12px;padding:7px 9px;min-height:38px}.legal-practice .lp-action-buttons{gap:5px}.legal-practice .lp-action-buttons .lp-submit{min-width:80px;width:100%}.legal-practice .lp-tutor-chat{inset:auto 0 0;height:min(510px,calc(100dvh - 120px));border-radius:16px}.legal-practice .lp-tutor-chat-log{padding:10px}.legal-practice .lp-actions .lp-status{font-size:11px;min-height:16px}}
@media(min-width:761px) and (max-height:700px){.legal-practice{--lp-top:74px}.legal-practice>header small{display:none}.legal-practice>header{padding:8px 14px}.legal-practice .lp-tutor-speech{padding:12px;max-height:53%}.legal-practice .lp-tutor-speech h2{font-size:17px}.legal-practice .lp-tutor-speech p{font-size:13px;line-height:1.7}}

.legal-practice .lp-question-view .lp-option{padding:8px 12px;min-height:44px}.legal-practice .lp-question-view .lp-option[aria-checked=true]{padding:7px 11px}.legal-practice .lp-question-view .lp-option>b{width:28px;height:28px}
