.g7{max-width:1100px;margin:auto}.g7-tabs{display:flex;gap:.5rem;flex-wrap:wrap;position:sticky;top:0;background:#fff;padding:.8rem;z-index:3;border-bottom:1px solid #d9e4e7}.g7-tabs button[aria-pressed=true]{background:#156b81;color:white}.g7 button,.g7 input,.g7 textarea{font:inherit}.g7 button{cursor:pointer;padding:.65rem 1rem;border:1px solid #c5dbe1;border-radius:12px;background:#f1f8fa;color:#164a5b}.g7 button:focus-visible,.g7 input:focus-visible,.g7 textarea:focus-visible{outline:3px solid #f0b64d;outline-offset:3px}.g7 button:disabled{opacity:.7;cursor:default}.g7-panel[hidden]{display:none}.g7-card{padding:1.5rem;background:#fff;border:1px solid #dfe9ec;border-radius:20px;margin:1rem 0;box-shadow:0 8px 24px #164a5b08}.g7-concepts{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.g7-concepts div{padding:1rem;background:#eff8f7;border-radius:14px}.g7-concepts dt{font-weight:700}.g7-concepts dd{margin:.6rem 0 0}.g7-choices{display:grid;gap:.7rem}.g7-choices button{text-align:right}.g7 .correct{background:#d8f4df;border-color:#168c45}.g7 .wrong{background:#ffe3e3;border-color:#c34949}.g7-match{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.g7-match>div{display:grid;gap:.7rem}.g7-match button{text-align:right}.g7-match button.selected{outline:3px solid #e4b350}.g7-note{color:#536b75;font-size:.9rem}.g7 label{display:block;margin:.8rem 0}.g7 textarea,.g7 input:not([type]){width:100%;max-width:100%;padding:.7rem;border:1px solid #b9ccd5;border-radius:10px;box-sizing:border-box}.g7-page{display:block;width:100%;max-width:760px;height:auto;margin:1.2rem auto;border:1px solid #dfe9ec}.g7 canvas{display:block;background:white;border:2px dashed #bfd6dd;border-radius:12px;width:100%;height:auto;touch-action:none;margin:1rem 0}.g7-next{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin:2rem 0}#feedback,#term-feedback,#match-feedback{min-height:2rem}#flash-meaning{padding:1rem;background:#f4f9e9;border-radius:12px}@media(max-width:650px){.g7-card{padding:1rem}.g7-concepts{grid-template-columns:1fr}.g7-tabs{gap:.35rem}.g7-tabs button{padding:.6rem .8rem}.g7-match{gap:.5rem}.g7-match button{padding:.6rem;font-size:.95rem}.g7-next a{width:100%}}
/* Motion pilot: readable RTL scaffolding and keyboard-visible controls. */
.g7 :is(button,a,input,textarea):focus-visible{outline:3px solid #123d8b;outline-offset:3px}
.g7-explanation{border-inline-start:3px solid #156b81;padding-inline-start:1rem;margin-block:1.5rem}
.g7-formula{font-weight:700;background:#edf6f8;padding:.75rem}
.g7-book-exercise{border-bottom:1px solid #d1dce2;padding-block:1rem}
.g7-book-exercise [data-book-solution]{white-space:pre-line}
#motion-reasoning table{border-collapse:collapse;width:100%;margin-block:1rem}
#motion-reasoning th,#motion-reasoning td{border:1px solid #ccd6dc;padding:.5rem;text-align:start}
#motion-reasoning input{width:100%;min-width:3rem;box-sizing:border-box;direction:ltr}
#motion-reasoning textarea{width:100%;box-sizing:border-box}
.g7-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:480px){#motion-reasoning th,#motion-reasoning td{font-size:.85rem;padding:.3rem}.g7-formula{overflow-wrap:anywhere}}
#order-cards{padding-inline-start:1.75rem}
#order-cards li{padding:.6rem;border-bottom:1px solid #d1dce2}
#order-cards li span{display:block;margin-block-end:.5rem}
#order-cards button{min-height:44px;margin-inline-end:.5rem}
