.shared-profile-bar{position:relative;z-index:20;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:10px max(18px,calc((100vw - 1060px)/2));background:#fff;color:#352447;border-bottom:1px solid #e8deef;font:700 14px Arial,Helvetica,sans-serif}.shared-profile-bar a{margin-right:auto;color:#56367e;text-decoration:none}.shared-profile-bar a:hover{text-decoration:underline}.shared-profile-bar button{padding:7px 12px;border:1px solid #70509a;border-radius:10px;background:#fff;color:#56367e;font:inherit;cursor:pointer}.shared-profile-bar button:hover{background:#f3ecfb}.shared-profile-bar button:focus-visible,.shared-profile-bar a:focus-visible{outline:3px solid #a97ae1;outline-offset:2px}@media(max-width:450px){.shared-profile-bar{justify-content:space-between;font-size:12px}}
.shared-profile-bar .shared-tutor-button{background:#60418e;color:#fff;border-color:#60418e}.shared-profile-bar .shared-tutor-button:hover{background:#4d3374;color:#fff}.tutor-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:min(780px,calc(100dvh - 24px));padding:0;border:1px solid #d9cceb;border-radius:18px;background:#fff;color:#2c2141;box-shadow:0 18px 70px #1c103d55;font:15px/1.45 Arial,Helvetica,sans-serif}.tutor-dialog::backdrop{background:#1b123b99}.tutor-dialog *{box-sizing:border-box}.tutor-head{display:flex;justify-content:space-between;gap:12px;padding:18px 20px 10px;border-bottom:1px solid #eee7f5}.tutor-head small{color:#70509a;font-size:11px;letter-spacing:.12em;font-weight:800}.tutor-head h2{margin:3px 0 0;font-size:22px;line-height:1.2}.tutor-close{align-self:flex-start;width:38px;height:38px;border:1px solid #d9cceb;border-radius:50%;background:#fff;color:#60418e;font-size:28px;cursor:pointer}.tutor-status,.tutor-context{margin:10px 20px;font-size:13px;color:#675a73}.tutor-status{padding:8px 10px;border-radius:9px;background:#f4f0f8}.tutor-log{min-height:150px;max-height:40vh;overflow:auto;padding:8px 20px;display:grid;align-content:start;gap:10px}.tutor-message{max-width:90%;padding:10px 12px;border-radius:13px;background:#f4f0f8}.tutor-message-user{justify-self:end;background:#e6d9f7}.tutor-message strong{font-size:12px;color:#56367e}.tutor-message p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.tutor-suggestion{margin:8px 20px;padding:10px 12px;border:1px solid #9c7dbd;border-radius:10px;background:#faf8fe}.tutor-suggestion p{margin:0 0 5px}.tutor-suggestion a{color:#4d3374;font-weight:700}.tutor-form{border-top:1px solid #eee7f5;padding:12px 20px 18px}.tutor-form>label{display:block;margin-bottom:6px;font-weight:700}.tutor-form textarea{width:100%;min-height:72px;resize:vertical;padding:9px;border:1px solid #bba9d2;border-radius:9px;font:inherit}.tutor-form-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.tutor-form-row label{display:flex;align-items:center;gap:6px;font-size:13px}.tutor-form-row button{padding:9px 18px;border:0;border-radius:9px;background:#60418e;color:#fff;font:700 14px Arial,Helvetica,sans-serif;cursor:pointer}.tutor-form-row button:disabled{opacity:.5}@media(max-width:600px){.shared-profile-bar{flex-wrap:wrap}.shared-profile-bar .shared-tutor-button{order:3;width:100%}.tutor-dialog{max-height:calc(100dvh - 12px)}.tutor-log{max-height:34vh}}
.reading-tutor-anchor{position:fixed;right:18px;bottom:18px;z-index:100}.reading-tutor-anchor .shared-tutor-button{padding:12px 18px;border:1px solid #60418e;border-radius:14px;background:#60418e;color:#fff;font:700 14px Arial,Helvetica,sans-serif;box-shadow:0 8px 22px #2f204680;cursor:pointer}
.tutor-nudge{position:fixed;right:16px;bottom:18px;z-index:100;display:flex;align-items:center;gap:10px;max-width:min(360px,calc(100vw - 32px));padding:10px 12px;border:1px solid #d9cceb;border-radius:12px;background:#fff;color:#352447;box-shadow:0 8px 30px #2f204640;font:700 13px Arial,Helvetica,sans-serif}.tutor-nudge[hidden]{display:none}.tutor-nudge button{padding:8px 10px;border:0;border-radius:8px;background:#60418e;color:white;white-space:nowrap;cursor:pointer}@media(max-width:600px){.tutor-nudge{bottom:12px}}
