/* Use the app sidebar's exact cream token and the old-exam Learn frame. */
.pilot-overlay,.learning-page{background:var(--side,#FFFEEF);overflow:hidden}
.learning-page{height:100%;min-height:0;padding:0 14px 10px}
.learning-bar{height:52px;max-width:none;margin:0}
.learning-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,300px);align-items:start;gap:14px;max-width:none;margin:4px 0 0}
.learning-main-column{min-width:0}
.learning-board,.learning-side{height:min(700px,calc(100dvh - 112px));min-height:0;border:2px solid #111;border-radius:24px}
.learning-board{width:100%;background:#fff}
.learning-side{display:flex;flex-direction:column;overflow:hidden;padding:0;background:var(--side,#FFFEEF)}
.learning-side .vx-chat{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;color:#000;font-size:13px}
.learning-pager{margin-top:4px}
.learning-board-body,.learning-board-body:has(.lesson-sheet),.learning-board-body:has(.grammar-showcase){min-height:0;overflow:hidden}
.learning-board-body:has(.lesson-sheet){display:block;padding:0}
.lesson-sheet{height:100%;min-height:0;overflow:hidden;padding:15px clamp(17px,2.2vw,28px) 17px}
.grammar-showcase{height:100%;min-height:0;overflow:hidden;padding:17px clamp(18px,2vw,28px) 18px}
.sheet-head{padding-bottom:8px}.sheet-head h1{font-size:clamp(22px,2.1vw,30px);margin:2px 0}.sheet-head p{font-size:12px;margin:0}
.sheet-compare{gap:9px;margin-top:10px}.sheet-compare article{padding:10px 12px}.sheet-compare h2{font-size:19px;margin:2px 0}.sheet-compare b{font-size:12px}.sheet-compare p{font-size:11px;margin-top:3px}.sheet-subhead{margin:10px 0 6px;font-size:16px}.sheet-cautions{gap:5px}.sheet-cautions article{padding:6px 9px}.sheet-cautions b{font-size:11px}.sheet-cautions p{font-size:10px}
.sheet-examples{margin-top:8px}.sheet-examples li{min-height:70px;padding:4px}.sheet-examples b{font-size:clamp(14px,1.4vw,17px)}.sheet-examples p{font-size:11px}
.sheet-translation-grid{gap:9px;margin-top:10px}.sheet-translation-grid article{gap:4px;padding:9px 11px}.sheet-translation-grid b{min-height:31px;font-size:12px}.sheet-translation-grid textarea{padding:6px 8px;font-size:12px}.sheet-translation-grid button{font-size:10px}.sheet-model{padding:5px 7px;font-size:11px}
.sheet-quiz{gap:6px;margin-top:9px}.sheet-quiz article{padding:7px 10px}.sheet-quiz b{margin:2px 0 4px;font-size:12px}.sheet-quiz button{padding:3px 8px;font-size:10px}.sheet-write{gap:4px;margin-top:8px;padding:8px 10px}.sheet-write textarea{padding:6px 8px}
.vx-chat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1.5px solid #d9dfe7}
.vx-chat-head img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#fff;border:1.5px solid #0a4088;flex:none}
.vx-chat-head b{display:block;font-size:15px;line-height:1.25}
.vx-chat-head span{display:block;font-size:11.5px;line-height:1.3;color:#5d6f86}
.vx-chat-log{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px 12px 8px}
.vx-msg{margin:0;max-width:88%;padding:8px 11px;border-radius:14px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.vx-msg.is-sensei{align-self:flex-start;background:#fff;border:1.5px solid #0a4088;border-bottom-left-radius:4px}
.vx-msg.is-you{align-self:flex-end;background:#0a4088;color:#fff;border-bottom-right-radius:4px}
.vx-msg.is-note{align-self:center;max-width:100%;padding:0 4px;background:none;color:#5d6f86;font-size:11.5px;text-align:center}
.vx-chat-form{margin:0;padding:8px 12px 12px;border-top:1.5px solid #d9dfe7}
.vx-chat-ctx{margin:0 0 6px;font-size:11px;line-height:1.3;color:#5d6f86;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-chat-row{display:flex;align-items:flex-end;gap:8px}
.vx-chat-row textarea{flex:1;min-width:0;box-sizing:border-box;resize:none;padding:9px 11px;border:1.5px solid #0a4088;border-radius:14px;background:#fff;color:#000;font:inherit;font-size:13px;line-height:1.45}
.vx-chat-row textarea::placeholder{color:#7d8da3}
.vx-chat-row button{flex:none;display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:#0a4088;color:#fff;cursor:pointer}
.vx-chat-row button:hover{background:#0c4fa8}
.vx-chat-form textarea:focus-visible,.vx-chat-form button:focus-visible{outline:2px solid #fc94af;outline-offset:2px}
@media(max-width:700px){.learning-page{padding:0 12px 8px}.learning-bar{height:47px}.learning-layout{display:block;margin:5px 0 0}.learning-board{height:calc(100dvh - 105px);max-height:none;min-height:0}.learning-side{display:none}.learning-board-body,.learning-board-body:has(.lesson-sheet),.learning-board-body:has(.grammar-showcase){overflow:hidden}.lesson-sheet{padding:11px 10px 12px}.grammar-showcase{padding:12px 11px 14px}.sheet-head{padding-bottom:6px}.sheet-head h1{font-size:20px}.sheet-head p{font-size:10px}.sheet-compare{gap:5px;margin-top:6px}.sheet-compare article{padding:7px 9px}.sheet-compare h2{font-size:16px}.sheet-compare b{font-size:10px}.sheet-compare p{font-size:10px}.sheet-subhead{margin:6px 0 4px;font-size:14px}.sheet-cautions{gap:4px}.sheet-cautions article{padding:5px 7px}.sheet-cautions b{font-size:10px}.sheet-cautions p{font-size:9px}.sheet-examples{margin-top:5px}.sheet-examples li{min-height:67px;padding:3px}.sheet-examples b{font-size:12px}.sheet-examples p{font-size:10px}.sheet-translation-grid{grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}.sheet-translation-grid article{gap:3px;padding:6px}.sheet-translation-grid b{min-height:41px;font-size:10px}.sheet-translation-grid textarea{min-height:42px;height:42px;padding:4px 5px;font-size:10px}.sheet-translation-grid button{padding:3px 6px;font-size:9px}.sheet-model{font-size:9px;padding:4px}.sheet-quiz{gap:5px;margin-top:6px}.sheet-quiz article{padding:6px 7px}.sheet-quiz b{font-size:10px}.sheet-quiz button{padding:3px 6px;font-size:9px}.sheet-write{margin-top:6px;padding:6px}.sheet-write label{font-size:10px}.sheet-write textarea{height:39px;padding:4px;font-size:10px}}
.sheet-translation-grid textarea,.sheet-write textarea{resize:none}
