@font-face{font-family:Manrope;src:url('../../shared/fonts/manrope-variable.ttf') format('truetype');font-weight:200 800;font-display:swap}
body{margin:0;color:#0E3068;font-family:Manrope,sans-serif}button{font:inherit}::selection{background:#7FC4F2;color:#0E3068}
.tam{width:min(100%,1020px);margin:auto;box-sizing:border-box;font-size:18px;font-variant-numeric:tabular-nums;display:flex;flex-direction:column;gap:10px}
.tam button{min-height:48px;min-width:48px;padding:8px 14px;border:2px solid #0E3068;border-radius:9px;background:#F8FCFF;color:#0E3068;cursor:pointer;font-weight:700;touch-action:manipulation}
.tam button:hover{background:#D9EEF8}.tam button[aria-pressed=true]{background:#7FC4F2}.tam button:disabled{opacity:.5;cursor:default}.tam button:focus-visible{outline:3px solid #2A7DE1;outline-offset:3px}
.tam-field{background:#F8FCFF;border-radius:14px;padding:16px;box-shadow:0 5px 18px #0e30681c}.tam-question{font-size:21px;margin:0 0 12px;font-weight:700;line-height:1.4}.tam-tools,.tam-bank,.tam-equation,.tam-answer,.tam-choice,.tam-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tam-tools{justify-content:space-between}.tam-main{display:grid;gap:12px}.tam-relations{display:flex;gap:10px;margin-bottom:12px}.tam-relations button{flex:1}.tam-bars{display:grid;gap:10px}.tam-row{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:8px;min-height:48px}.tam-track{display:flex;gap:3px;align-items:stretch;min-height:48px;flex-wrap:wrap}.tam-segment{display:grid;place-items:center;min-width:35px;height:48px;background:#D9EEF8;border:2px solid #2864a4;border-radius:4px;box-sizing:border-box;font-size:16px}.tam-segment.tam-unit{min-width:18px;width:18px;padding:0;background:#7FC4F2}.tam-target{min-height:50px;min-width:120px;border:2px dashed #2864a4;border-radius:7px;display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:4px;flex:1}.tam-target:empty::after{content:'Place pieces here';font-size:15px;color:#305b85}.tam-model-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.tam-equation{justify-content:center;margin:12px 0}.tam-equation button{min-width:65px;border-style:dashed;font-size:24px}.tam-answer{justify-content:center;margin:10px 0}.tam-answer button{min-width:88px;border-style:dashed;font-size:25px}.tam-bank{justify-content:center;margin-top:10px}.tam-bank button{font-size:21px}.tam-lower{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.tam-hint{margin:8px 0 0;font-size:16px;line-height:1.4}.tam-feedback{font-size:17px;min-height:24px;margin:0;line-height:1.4}.tam-next{background:#D9EEF8!important}.tam-comic{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.tam-frame{border:2px solid #0E3068;background:#F8FCFF;border-radius:9px;min-height:88px;display:flex;align-items:center;justify-content:center;gap:8px;overflow:hidden}.tam-frame img{width:60px;height:80px;object-fit:contain}.tam-frame svg{width:100%;max-width:140px;height:70px;fill:#7FC4F2;stroke:#0E3068;stroke-width:2}.tam-frame text{font:700 16px Manrope;fill:#0E3068;stroke:none}.tam-claim{font-size:18px;padding:8px 0;margin:0}.tam-estimate{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap}.tam-proof{margin-top:12px}.tam-complete{background:#F8FCFF;border-radius:14px;padding:20px;text-align:center}.tam-complete h2{font-size:26px}.tam-complete a{color:#0E3068;display:inline-block;padding:12px}.tam-demo-hand{position:fixed;width:68px;height:auto;z-index:90;pointer-events:none;transform:translate(-20%,-10%)}
.tam-quiet .mc-companion-actors{visibility:hidden}.tam-quiet .mc-companion{grid-template-columns:0 minmax(0,1fr) 48px}.tam-quiet .mc-companion-copy{grid-column:2}.tam-quiet .mc-companion-actors{width:0}
@media(min-width:800px){.tam-main{grid-template-columns:minmax(0,1fr) minmax(280px,.75fr)}.tam-field-wide{grid-column:1/-1}.tam .mc-companion{margin-bottom:0}.tam-comic{margin-bottom:8px}.tam-frame{min-height:72px}.tam-frame img{height:70px}.tam-field{padding:12px 16px}}
@media(max-width:600px){.tam{font-size:16px}.tam-question{font-size:18px}.tam-lower{grid-template-columns:1fr}.tam-relations{gap:6px}.tam-relations button{padding:8px}.tam-field{padding:12px}.tam-row{grid-template-columns:45px 1fr}.tam-comic{gap:4px}.tam-frame img{width:40px}.tam-equation{gap:5px}.tam-equation button{min-width:50px;padding:8px}.tam-bank{gap:5px}.tam-bank button{min-width:48px;padding:6px}.tam-quiet .mc-companion{grid-template-columns:0 1fr 48px}}
@media(min-width:800px) and (max-height:850px){.tam{gap:6px;font-size:16px}.tam-field{padding:10px 12px}.tam-question{font-size:19px;margin-bottom:8px}.tam .mc-companion{margin-bottom:0}.tam .mc-companion-actors{height:105px}.tam .mc-companion-actors [data-companion]{height:105px}.tam-tools{margin:0}.tam-comic{margin-bottom:6px}.tam-frame{min-height:64px}.tam-frame img{height:60px}.tam-frame svg{height:55px}.tam-bank{margin-top:6px}.tam-equation{margin:6px 0}}

.tam-track{padding:4px;border:2px solid transparent;box-sizing:border-box;gap:0}.tam-target{box-sizing:border-box;gap:0}.tam-segment.tam-unit{padding:0;min-width:0}.tam-segment{flex-shrink:0}.tam-target .tam-segment{cursor:default}

html,body{height:100%;background:#D9EEF8}.tam{height:100%;min-height:0;overflow:auto;align-content:start;padding:8px 16px 16px}

.tam .mc-companion{grid-template-columns:208px minmax(0,1fr) 48px}.tam .mc-companion-actors{width:208px;height:144px}.tam .mc-companion-actors [data-companion]{width:100px;height:144px}.tam-quiet .mc-companion{grid-template-columns:0 minmax(0,1fr) 48px}.tam-quiet .mc-companion-actors{width:0}
@media(max-width:600px){.tam .mc-companion{grid-template-columns:208px minmax(0,1fr);width:100%}.tam .mc-companion-copy{grid-column:1/-1;grid-row:2}.tam .mc-companion-actors{grid-column:1;grid-row:1}.tam .mc-companion-clue{grid-column:2;grid-row:1;justify-self:start;align-self:start}.tam .mc-companion-hint{grid-column:2;grid-row:1;justify-self:end;align-self:end}.tam-quiet .mc-companion{grid-template-columns:1fr 48px}.tam-quiet .mc-companion-copy{grid-column:1;grid-row:1/3}.tam-quiet .mc-companion-actors{display:none}.tam-quiet .mc-companion-clue{grid-column:2;grid-row:1}.tam-quiet .mc-companion-hint{grid-column:2;grid-row:2}}

.tam-audio-note{background:#F8FCFF;color:#0E3068;padding:8px;border-radius:8px;font-size:14px;margin:0}
