/* LayerLab reference panels, 20261005. Real controls and runtime content. */
#lmQuitBtn,#ipQuit,body .top #backBtn,body #practiceQuitBtn,body #quitBtn{
 flex:0 0 auto!important;width:auto!important;max-width:max-content!important;min-width:96px!important;height:36px!important;min-height:36px!important;padding:0 13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;border:1px solid #ef4453!important;border-radius:10px!important;background:#fff7f8!important;color:#df2637!important;box-shadow:none!important;font-size:12px!important;font-weight:800!important;
}
#integratedOneshotPanel{box-sizing:border-box;padding:18px 20px 12px;background:#fff;border:1px solid #e2e9f4;border-radius:16px;color:#17213a;min-width:0;}
#integratedOneshotPanel .pe-oneshot-kicker{gap:12px;align-items:flex-start;color:#64748b;font-size:12px;line-height:1.55;}
#integratedOneshotPanel .pe-oneshot-close{flex:0 0 34px;width:34px;height:34px;border:1px solid #dce5f2;border-radius:10px;background:#fff;color:#52617c;}
#integratedOneshotPanel .math-tutor-panel-nav{gap:12px;padding:12px 0;border-color:#dbe5f4;}
#integratedOneshotPanel .math-tutor-panel-nav strong{font-size:16px;line-height:1.4;}
#integratedOneshotPanel .math-tutor-panel-nav small{font-size:11px;}
#integratedOneshotPanel .pe-oneshot-title h3{font-size:18px;margin:12px 0;line-height:1.5;}
#integratedOneshotPanel .pe-oneshot-output{border:0;border-radius:12px;background:#fff;min-width:0;overflow-wrap:anywhere;}
#integratedOneshotPanel .math-tutor-content{box-sizing:border-box;min-height:0;padding:16px;border:1px solid #dce5f4;border-radius:12px;background:#fbfdff;font-size:14px;line-height:1.75;}
#integratedOneshotPanel .math-tutor-primary{width:auto;min-height:38px;padding:9px 18px;border:1px solid #1761ff;border-radius:10px;background:#1761ff;color:#fff;line-height:1.4;font-size:13px;}
#integratedOneshotPanel .math-tutor-primary:disabled{cursor:not-allowed;}
#integratedOneshotPanel [aria-label="내신 문제 형식"]{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;gap:4px;padding:4px;margin:0 0 14px;border:1px solid #dae4f3;border-radius:11px;background:#f4f7fc;}
#integratedOneshotPanel [data-integrated-extra-format]{margin:0;min-height:34px;padding:7px 15px;border:1px solid transparent;background:transparent;color:#62738e;}
#integratedOneshotPanel [data-integrated-extra-format][aria-pressed="true"]{background:#fff;border-color:#bfd2fa;color:#1761ff;box-shadow:0 2px 5px #1835640c;}
#integratedOneshotPanel .korean-extra-question{padding:16px;border-radius:12px;background:#fff;}
#integratedOneshotPanel .korean-extra-choices:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));}
#integratedOneshotPanel .korean-extra-choices button{min-height:58px;padding:12px;border-radius:10px;font-size:15px;}
#integratedOneshotPanel .korean-extra-choices button.is-correct{border-color:#77caa5;background:#edf9f2;color:#167346;}
#integratedOneshotPanel [data-integrated-short-answer]{box-sizing:border-box;display:block;width:100%;min-height:44px;margin-top:8px;padding:10px 13px;border:1px solid #cfdcf0;border-radius:10px;background:#fff;color:#1f2c45;font:inherit;}
#integratedOneshotPanel .korean-extra-feedback{padding:15px 17px;border-color:#c5e7d6;border-radius:12px;background:#effaf5;color:#215d42;}
#integratedOneshotPanel .korean-extra-feedback p{font-size:13px;line-height:1.75;}
#integratedOneshotPanel .so-write{padding:0;border:0;background:#fff;}
#integratedOneshotPanel .so-write textarea{box-sizing:border-box;display:block;width:100%;min-height:112px;max-height:45dvh;padding:13px 15px;border:1px solid #cddaf0;border-radius:11px;font-size:14px;line-height:1.75;resize:vertical;}
#integratedOneshotPanel .so-write-bar{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 15px;}
#integratedOneshotPanel .so-write-bar button{flex:0 1 auto;width:auto;max-width:100%;height:auto;min-height:38px;margin:0;padding:9px 18px;border-radius:10px;font-size:13px;line-height:1.4;}
#integratedOneshotPanel .so-write-bar .math-tutor-primary{border-color:#1761ff;background:#1761ff;}
#integratedOneshotPanel .so-write .ko-quiz-feedback{padding:16px 18px;border:1px solid #cbdcff;border-radius:12px;background:#f3f7ff;line-height:1.8;color:#354967;}
#integratedOneshotPanel .so-write .ko-quiz-feedback :is(h3,h4){padding-left:11px;border-left:3px solid #1761ff;color:#17213a;font-size:16px;line-height:1.5;}
#integratedOneshotPanel .so-write .ko-quiz-feedback p{font-size:13px;line-height:1.8;}
#integratedOneshotPanel .so-write .ko-quiz-feedback :is(h3,h4):not(:first-child){margin-top:18px;padding-top:2px;}
#integratedOneshotPanel :is(button,input,textarea,select):focus-visible,.tdt-overlay[data-view="result"] :is(button,input,textarea,select):focus-visible{outline:2px solid #1761ff;outline-offset:3px;}
.tdt-overlay[data-view="result"] .tdt-dialog{border-color:#dce5f4;border-radius:16px;background:#fff;}
.tdt-overlay[data-view="result"] .tdt-header{border-bottom:1px solid #dce5f4;}
.tdt-overlay[data-view="result"] .tdt-widget{padding:16px;border:1px solid #dce5f4;border-radius:12px;background:#fff;overflow-wrap:anywhere;}
.tdt-overlay[data-view="result"] .tdt-widget-body{font-size:14px;line-height:1.8;}
.tdt-overlay[data-view="result"] .tdt-simulator-output:not(:empty){box-sizing:border-box;padding:16px;border:1px solid #ccdfff;border-radius:12px;background:#f3f7ff;line-height:1.8;}
.tdt-overlay[data-view="result"] .tdt-simulator-output h4{margin:12px 0 7px;color:#1c3156;font-size:15px;}
.tdt-overlay[data-view="result"] .tdt-simulator-output h4:first-child{margin-top:0;}
.tdt-overlay[data-view="result"] .tdt-evidence{padding:11px 13px;border-left:3px solid #6b97f1;background:#eef3fb;border-radius:0 9px 9px 0;color:#5b6d89;font-size:12px;}
.tdt-overlay[data-view="result"] .tdt-quiz-choice{min-height:42px;padding:10px 13px;border:1px solid #d3dff0;border-radius:10px;background:#fff;line-height:1.6;font-size:13px;}
.tdt-overlay[data-view="result"] .tdt-quiz-choice[aria-pressed="true"]{border-color:#1761ff;background:#eef4ff;color:#1550c5;}
.tdt-overlay[data-view="result"] .tdt-quiz-result:not(:empty){padding:18px;border:1px solid #d0dfff;border-radius:12px;background:#f3f7ff;color:#1761ff;font-size:23px;font-weight:800;line-height:1.6;}
.tdt-overlay[data-view="result"] .tdt-widget-status[data-state="success"]{padding:11px 14px;border:1px solid #c8e9d8;border-radius:9px;background:#effaf4;color:#197a4d;font-size:13px;}
.tdt-overlay[data-view="result"] .tdt-widget-actions :is(.tdt-primary,.tdt-secondary){width:auto;max-width:100%;min-height:38px;padding:9px 16px;border-radius:10px;font-size:13px;white-space:normal;}
.tdt-overlay[data-view="result"] .tdt-primary{background:#1761ff;border-color:#1761ff;}
@media(max-width:600px){
 #integratedOneshotPanel{padding:12px 13px 9px;}
 #integratedOneshotPanel .pe-oneshot-kicker{font-size:11px;}
 #integratedOneshotPanel .math-tutor-content{padding:12px;}
 #integratedOneshotPanel .so-write .ko-quiz-feedback{padding:13px;}
 .tdt-overlay[data-view="result"] .tdt-widget{padding:12px;}
 #lmQuitBtn,body .top #backBtn{min-width:90px!important;padding:0 10px!important;}
}
/* The adjacent understanding form follows the same native-control design. */
.tdt-overlay[data-view="result"] .tdt-quiz-result + .tdt-widget-actions .tdt-secondary{border:1px solid #1761ff;background:#1761ff;color:#fff;}
.tdt-overlay[data-view="result"] .tdt-reflection{padding:14px 16px;margin-top:14px;border:1px solid #dce5f4;border-radius:12px;background:#f8fbff;line-height:1.65;font-size:13px;}
.tdt-overlay[data-view="result"] .tdt-reflection h4{margin:0 0 6px;color:#21395d;font-size:15px;}
.tdt-overlay[data-view="result"] .tdt-understanding-choices{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0;}
.tdt-overlay[data-view="result"] .tdt-reflection button{width:auto;max-width:100%;min-height:34px;padding:7px 11px;border:1px solid #d2def0;border-radius:9px;background:#fff;color:#385378;font:inherit;line-height:1.5;cursor:pointer;}
.tdt-overlay[data-view="result"] .tdt-reflection button[aria-pressed="true"]{border-color:#1761ff;background:#eaf2ff;color:#1761ff;}
.tdt-overlay[data-view="result"] .tdt-reflection button:disabled{opacity:.5;cursor:not-allowed;}
.tdt-overlay[data-view="result"] .tdt-reflection textarea{box-sizing:border-box;display:block;width:100%;min-height:88px;padding:11px 12px;margin:8px 0;border:1px solid #d2def0;border-radius:10px;background:#fff;color:#21395d;font:inherit;line-height:1.65;resize:vertical;}
.tdt-overlay[data-view="result"] .tdt-result-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0 12px;}
.tdt-overlay[data-view="result"] .tdt-result-tools label{display:flex;flex:1 1 165px;min-width:0;align-items:center;gap:7px;color:#61728b;font-size:12px;}
.tdt-overlay[data-view="result"] .tdt-result-tools select{box-sizing:border-box;flex:1;min-width:0;max-width:100%;min-height:34px;padding:6px 9px;border:1px solid #d2def0;border-radius:9px;background:#fff;color:#29466e;font:inherit;}
.tdt-overlay[data-view="result"] .tdt-reading-size{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#61728b;}
.tdt-overlay[data-view="result"] .tdt-reading-size button{min-width:32px;min-height:32px;padding:5px 8px;border:1px solid #d2def0;border-radius:8px;background:#fff;color:#29466e;font:inherit;cursor:pointer;}
.tdt-overlay[data-view="result"] .tdt-source-context{padding:10px 12px;margin:0 0 12px;border:1px solid #e1e9f5;border-radius:10px;background:#f8fbff;font-size:12px;color:#5b6d89;}
.tdt-overlay[data-view="result"] .tdt-source-context summary{cursor:pointer;line-height:1.6;}
