.gb-shell{max-width:860px;margin:auto;padding:20px}.gb-header{display:flex;gap:18px;align-items:center;color:#fff5da}.gb-header img{object-fit:contain;width:110px;height:140px}.gb-header h2{font-size:clamp(1.5rem,4vw,2.3rem);line-height:1.2}.gb-header p{letter-spacing:.14em;font-size:.8rem}.gb-panel{background:#fff9ec;color:#183e40;border-radius:24px;padding:clamp(18px,4vw,32px);line-height:1.65}.gb-panel h3{font-size:1.5rem}.gb-panel button,.gb-shell>button{min-height:48px;padding:12px 18px;border:1px solid #a9c2b7;border-radius:13px;background:#fffdf5;color:#153e40;font:inherit;font-weight:700;cursor:pointer}.gb-panel button:focus-visible,.gb-shell>button:focus-visible{outline:3px solid #ce9d3c;outline-offset:3px}.gb-panel button[aria-pressed=true]{background:#175751;color:white}.gb-panel button:disabled{opacity:.65;cursor:default}.gb-actions,.gb-switch,.gb-options{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.gb-people,.gb-role-grid,.gb-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.gb-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gb-person{padding:16px 10px;text-align:center;border-radius:18px;border:2px solid #24736c;display:flex;flex-direction:column;align-items:center;gap:8px}.gb-person>span{font-size:38px;line-height:1}.gb-person.included{background:#e4eee0}.gb-person.outside{border-style:dashed;background:#f6e7ce}.gb-person small{font-weight:bold}.gb-role-grid>div,.gb-words{padding:16px;background:#eaf0e1;border-radius:14px}.gb-table-wrap{overflow:auto} .gb-panel table{border-collapse:collapse;width:100%;margin:20px 0}.gb-panel td,.gb-panel th{text-align:left;border-bottom:1px solid #c5d1ba;padding:10px}.gb-translation{margin-top:8px;margin-bottom:26px}.gb-feedback{border-left:5px solid #26756b;padding:16px;background:#e8f0df;margin:20px 0}.gb-local{color:#fff5da;font-size:.9rem}.gb-error{background:#fff1d4;color:#733c11;padding:15px;border-radius:12px}.gb-panel details{padding:15px;border-bottom:1px solid #bccbbb}.gb-panel summary{cursor:pointer}.gb-panel>button{margin:6px}.gb-panel .studio-chalk-text{overflow-wrap:anywhere}@media(max-width:540px){.gb-shell{padding:12px}.gb-header img{width:78px;height:110px}.gb-people{gap:6px}.gb-person{padding:12px 5px;font-size:.85rem}.gb-role-grid,.gb-topic-grid{grid-template-columns:1fr}.gb-options button{flex:1}}

/* Keep both languages at the same responsive chalk size; allow long translations to wrap. */
:is(#grammarBasicsView, #grammarReviewView) .studio-chalk-text.gb-chalk-translation{color:#ffe59a;text-shadow:.4px .2px 0 #ffe59a40;margin-top:22px;padding-top:20px;border-top:1px solid #ffe59a66}
@media(forced-colors:active){:is(#grammarBasicsView, #grammarReviewView) .studio-chalk-text.gb-chalk-translation{color:CanvasText;text-shadow:none;border-color:CanvasText}}

/* Reuse the sentence-workshop feedback colours and Kabil poses. */
:is(#grammarBasicsView, #grammarReviewView) .gb-feedback{display:flex;align-items:center;gap:18px;border-radius:16px;border:1px solid;border-left-width:5px}
:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-correct{background:#eff5e5;border-color:#a5c78b;color:#254329}
:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-retry{background:linear-gradient(135deg,#fff2b9,#ffdbac);border-color:#da9a37;color:#634016}
:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-kabil{display:block;width:120px;height:120px;object-fit:contain;flex:0 0 auto;transform:none}
:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-copy{min-width:0;overflow-wrap:anywhere}
:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-copy p:last-child{margin-bottom:0}
@media(max-width:540px){:is(#grammarBasicsView, #grammarReviewView) .gb-feedback{align-items:flex-start;gap:12px;padding:14px}:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-kabil{width:80px;height:90px}}
@media(max-width:360px){:is(#grammarBasicsView, #grammarReviewView) .gb-feedback{flex-direction:column}:is(#grammarBasicsView, #grammarReviewView) .gb-feedback-kabil{align-self:center}}
