#trace-tutor-launch{border:1px solid #65765d;border-radius:999px;background:#C6D3AC;color:#272B28;font-weight:700;padding:10px 15px;cursor:pointer;margin:4px 0}#trace-tutor-float{position:fixed;right:18px;bottom:18px;z-index:90;border:1px solid #65765d;border-radius:999px;background:#C6D3AC;color:#272B28;padding:12px 18px;font:700 14px system-ui;box-shadow:0 4px 20px #272b2820;cursor:pointer}#trace-tutor-launch[hidden],#trace-tutor-float[hidden],#trace-tutor-dialog [hidden]{display:none!important}
#trace-tutor-dialog{box-sizing:border-box;border:1px solid #DCDDD2;border-radius:18px;background:#F7F6F0;color:#272B28;width:min(1380px,96vw);max-width:96vw;height: min(900px,94dvh);max-height:94dvh;padding:0;overflow:auto;font:14px Manrope,system-ui,sans-serif}#trace-tutor-dialog::backdrop{background:#272b2866}#trace-tutor-dialog *{box-sizing:border-box}#trace-tutor-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #DCDDD2;padding:15px 20px;position:sticky;top:0;background:#F7F6F0;z-index:3}#trace-tutor-dialog header img{width:94px;object-fit:contain}#trace-tutor-dialog h2{font:400 28px 'Instrument Serif',Georgia,serif;margin:0}#trace-tutor-dialog h3{font:600 17px system-ui;margin:0 0 10px}#trace-tutor-dialog button,#trace-tutor-dialog select{font:inherit;border:1px solid #B3B5A8;background:#fff;color:#272B28;border-radius:8px;padding:8px 11px;cursor:pointer}#trace-tutor-dialog button:hover{background:#E5E9DA}#trace-tutor-dialog button:disabled{opacity:.45;cursor:not-allowed}#trace-tutor-dialog .tt-primary{background:#C6D3AC;border-color:#65765D;font-weight:700}#trace-tutor-dialog .tt-layout{display:grid;grid-template-columns:minmax(290px,36%) minmax(0,64%);min-height:0;height:calc(100% - 76px)}#trace-tutor-dialog .tt-chat,#trace-tutor-dialog .tt-work{min-width:0;overflow:auto;padding:18px}#trace-tutor-dialog .tt-chat{border-right:1px solid #DCDDD2}#tt-chatlog{display:flex;flex-direction:column;gap:12px;min-height:140px;margin:12px 0}#tt-chatlog article{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #DCDDD2;padding:11px 13px;border-radius:12px;background:#fff;line-height:1.5}#tt-chatlog article.tt-user{background:#E7EBDD;align-self:flex-end;max-width:95%}#tt-chatlog article strong{display:block;font-size:11px;letter-spacing:.07em;color:#4F6250;text-transform:uppercase;margin-bottom:5px}#trace-tutor-dialog textarea{width:100%;min-height:85px;resize:vertical;background:white;border:1px solid #B3B5A8;border-radius:9px;padding:10px;font:inherit;color:#272B28}#trace-tutor-dialog .tt-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 0}#trace-tutor-dialog .tt-small{font-size:12px;color:#52634F;line-height:1.5}#tt-question-display{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;font-weight:600}#tt-stage{height:clamp(300px,48vh,570px);border:1px solid #DCDDD2;background:#fff;border-radius:12px;overflow:hidden;position:relative}#tt-svg{width:100%;height:100%;display:block;touch-action:none}#tt-step{padding:10px 0;min-height:72px;white-space:pre-wrap;line-height:1.5}#tt-progress{width:100%;accent-color:#65765D}#tt-3d-stage{height:clamp(280px,45vh,560px);background:#fff;border:1px solid #DCDDD2;border-radius:12px;overflow:hidden}#tt-photo{width:100%;max-height:380px;object-fit:contain;cursor:crosshair;border:1px solid #DCDDD2}#trace-tutor-dialog details{margin:12px 0;border:1px solid #DCDDD2;border-radius:9px;padding:12px}#trace-tutor-dialog summary{font-weight:600;cursor:pointer}#trace-tutor-dialog :focus-visible{outline:2px solid #65765D;outline-offset:2px}#tt-file,#tt-camera{max-width:100%}#trace-tutor-dialog footer{font-size:11px;color:#52634F;margin-top:16px}#tt-stage:fullscreen,#tt-3d-box:fullscreen{height:100%;background:white;padding:8px}#tt-3d-box:fullscreen #tt-3d-stage{height:calc(100vh - 70px)}@media(max-width:760px){#trace-tutor-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}#trace-tutor-dialog .tt-layout{display:block;height:auto}#trace-tutor-dialog .tt-chat{border-right:none;border-bottom:1px solid #DCDDD2}#trace-tutor-dialog .tt-work{padding:12px}#trace-tutor-dialog header{padding:10px 12px}#trace-tutor-dialog h2{font-size:23px}#tt-stage{height:350px}#trace-tutor-float{bottom:72px}}
