.class-shell{font:16px/1.45 system-ui,"Microsoft JhengHei",sans-serif;color:#18334a;box-sizing:border-box;background:#fff;border:1px solid #bbcedf;border-radius:12px;padding:12px;max-width:100%;overflow-wrap:anywhere}
.class-shell *{box-sizing:border-box}.class-shell [hidden]{display:none!important}.class-shell-heading{margin-bottom:8px}.class-shell-tools,.class-shell-fonts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.class-shell button,.class-shell summary{font:inherit;min-height:42px;padding:8px 10px;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.class-shell button{border:1px solid #6d8da7;border-radius:7px;background:#f1f6fa;color:#163c59}.class-shell button[aria-pressed=true]{background:#174f77;color:white}.class-shell button:disabled{opacity:.6;cursor:wait}
.class-shell :focus-visible,.class-shell-feedback :focus-visible{outline:3px solid #d67800;outline-offset:2px}.class-shell summary{font-weight:700}.class-shell-login{margin-top:6px}.class-shell-login .term-login{max-width:none}
.class-shell-status{font-size:14px;margin:7px 0 0;min-height:20px}.class-shell-evaluation{padding:9px 10px;background:#fff6d6;border-radius:8px;margin-top:8px}.class-shell-evaluation p{margin:4px 0}.class-shell a{color:#14587e}.class-shell-qr{margin:10px 0}.class-shell-qr img,.class-shell-qr canvas{max-width:100%}
.class-shell-feedback{font:16px/1.5 system-ui,"Microsoft JhengHei",sans-serif;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;border:1px solid #8aa6bf;border-radius:12px;color:#18334a}.class-shell-feedback::backdrop{background:#001a32aa}.class-shell-feedback h2{font-size:22px;margin:0 0 8px}.class-shell-feedback p{margin:8px 0}.class-shell-feedback textarea{font:16px/1.4 system-ui;width:100%;box-sizing:border-box;resize:vertical;max-height:35dvh;min-height:70px;display:block;border:1px solid #7694ad;border-radius:7px;padding:8px}.class-shell-feedback button{font:inherit;min-height:44px;background:#174f77;color:white;border:0;border-radius:6px;padding:8px 12px;margin:8px 6px 0 0;touch-action:manipulation;user-select:none}
.class-shell-content{font-size:calc(16px * var(--class-font-scale,1));min-width:0;max-width:100%;overflow-wrap:anywhere}.class-shell-content :where(p,li,label,button,input,textarea,select){font-size:inherit;max-width:100%;box-sizing:border-box}.class-shell-content :where(h1){font-size:1.6em}.class-shell-content :where(h2){font-size:1.3em}.class-shell-content :where(h3){font-size:1.15em}.class-shell-content :where(img,video,iframe,canvas){max-width:100%}
@media(max-width:450px){.class-shell{padding:8px}.class-shell button,.class-shell summary{font-size:14px;padding:7px 8px;min-height:40px}.class-shell-heading{font-size:14px}.class-shell .term-login{padding:10px}.class-shell .term-login h2{font-size:21px}.class-shell .term-login p{font-size:13px}.class-shell .term-login label{font-size:14px}.class-shell .term-login input:not([type=checkbox]){height:36px}.class-shell .term-login form{gap:5px}}
@media(max-height:420px){.class-shell{padding:7px}.class-shell-heading{margin-bottom:4px}.class-shell p{margin:4px 0}.class-shell button,.class-shell summary{min-height:36px;padding:5px 8px}.class-shell-qr{display:inline-block;margin:4px 10px 0 0}.class-shell-qr img,.class-shell-qr canvas{width:128px;height:128px}}

/* Keep evaluation text readable through page-specific and compact shell rules. */
.class-shell-evaluation,.class-shell-evaluation :is(strong,p,a){font-size:max(16px,1em)!important}
