@font-face{font-family:Montserrat;src:url('assets/montserrat.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{font-family:Montserrat,Arial,sans-serif;--reader-font:15px;--chat-width:33%;--purple:#694afe;--pink:#ed008c;--yellow:#ffe700;--green:#009640;--orange:#ff5500}
body[data-theme=poster]{color-scheme:light;--bg:#fff;--panel:#fff;--surface:#f4f6f7;--screen:#fff;--text:#111;--muted:#777;--secondary:#777;--coral:#694afe;--line:#dedede;--line-quiet:#e9e9e9;--selected:#ede9ff;--ghost:#694afe09;--accent-ink:#fff;--study-paper:#fff;--study-muted:#777;--study-line:#dedede}
body{font-family:Montserrat,Arial,sans-serif;font-size:14px;overflow:hidden}#app{height:100dvh;min-height:520px;background:var(--bg)!important;color:var(--text);overflow:hidden}.app-header{height:76px;gap:20px;padding:0 30px;border-bottom:1px solid var(--line);background:var(--bg)!important}.brand-mark{background:var(--pink)!important;width:112px;height:38px}.header-line{width:1px;height:27px;background:var(--line)}.top-button{border:0!important;border-radius:0!important;background:transparent!important;color:var(--text)!important;font-size:11px;padding:9px 0;gap:9px}.top-button:hover{color:var(--purple)!important}.top-button>span:last-child:not(#theme-button-label){font-size:19px}.course-heading{font-size:12px;justify-content:center;gap:12px}.prototype-label{color:var(--muted);border:1px solid var(--line);font-size:9px;padding:2px 7px;border-radius:50px}#theme-button{padding:8px 12px;border:1px solid var(--line)!important;border-radius:99px!important;font-size:11px}.theme-swatch{background:conic-gradient(#694afe 0 25%,#ffe700 0 50%,#ed008c 0 75%,#009640 0);border:0;width:16px;height:16px}.workspace{display:grid;grid-template-columns:minmax(270px,var(--chat-width,33%)) 12px minmax(0,1fr);flex:1;min-height:0;padding:20px 26px 0;gap:0}.dialogue{min-width:0;min-height:0;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--panel)!important;padding:0 24px 20px 0!important;display:flex;flex-direction:column;overflow:hidden}.dialogue-heading{height:52px;flex-shrink:0;padding:0;align-items:center;border-bottom:1px solid var(--line);margin:0}.dialogue-heading>div{display:flex;gap:14px;align-items:center}.eddie-name{font-size:11px!important;letter-spacing:1px;color:var(--text)!important;font-style:normal!important}.panel-index{font-size:10px;color:var(--muted);font-weight:400;margin-right:8px}.pill{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:6px 13px;border-radius:50px;font-size:11px;white-space:nowrap;background:var(--purple);color:#fff}.pill.yellow{background:var(--yellow);color:#111}.pill.purple{background:var(--purple);color:#fff}.pill span{font-size:18px;line-height:1}.companion{position:relative;display:flex;align-items:center;gap:9px;min-height:175px;height:27vh;max-height:260px;flex-shrink:0;margin:12px 0 5px}.companion-copy{position:relative;flex:1;z-index:2}.companion h1{font-size:clamp(24px,2.65vw,43px);line-height:1.06;letter-spacing:-1.8px;font-weight:500}.online{font-size:9px;display:flex;align-items:center;gap:6px;margin-top:15px;color:var(--muted)}.online i{height:5px;width:5px;background:var(--green);border-radius:50%}#companion-avatar{width:42%;height:100%;position:relative;overflow:hidden;flex-shrink:0}#companion-avatar .mascot-scene{position:absolute!important;inset:0!important;display:grid;place-items:center;padding:7px 0!important;background:none!important}#companion-avatar .mascot-scene:before{display:none}#companion-avatar img.mascot-image{position:static!important;width:100%!important;max-height:100%!important;height:100%!important;object-fit:contain;filter:none!important;transform:none!important}#companion-avatar .avatar-window{inset:0;transform:none;width:100%;height:100%}.sticker{display:grid;place-items:center;position:absolute;z-index:2;width:30px;height:30px;transform:rotate(13deg);font-family:Arial,sans-serif;font-size:23px;line-height:1;background:var(--pink);color:#111;border-radius:50%}.sticker.smile{right:20%;top:-27px;background:var(--yellow);width:31px;height:31px}.messages{flex:1;min-height:60px;overflow-y:auto;display:flex;flex-direction:column;gap:21px;padding:12px 4px 20px 0!important;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.message{width:100%;max-width:100%!important;font-size:14px!important;line-height:1.65;margin:0;padding:0 3px;background:none;color:var(--text)}.message-who{font-size:8px;display:block;color:var(--purple);letter-spacing:1px;margin-bottom:6px}.message p{margin:0}.message.student{padding:13px 17px!important;border:0!important;background:var(--surface)!important;border-radius:0!important;max-width:94%!important;align-self:flex-end}.message.student .message-who{color:var(--muted)}.message-form{display:flex;flex-direction:column;gap:0;flex-shrink:0;border:1px solid var(--line)!important;border-radius:0!important;background:var(--bg)!important;width:100%;max-width:none;padding:13px 12px 9px!important;box-shadow:none!important;margin-top:7px}.message-form textarea{background:none;color:var(--text);font-size:12px!important;width:100%;padding:0!important;line-height:1.6;resize:none;min-height:48px;border:0;outline:none}.compose-actions{display:flex;align-items:center;gap:5px;width:100%}.compose-actions small{font-size:8px;color:var(--muted);margin-left:5px}.compose-actions .icon-button{width:30px;height:32px;font-size:24px}.compose-actions svg{width:17px;height:17px}#send-button{background:var(--purple);color:white;border-radius:50%;width:36px;height:36px;margin-left:auto;font-size:24px;display:grid;place-items:center}#send-button:disabled{opacity:.35}.column-divider,.study-divider{background:transparent!important;border:0!important;border-left:1px solid var(--line)!important;position:relative;cursor:col-resize;touch-action:none;display:grid;place-items:center}.column-divider span,.study-divider span{height:30px;width:3px;background:var(--line);position:absolute;left:-2px;border-radius:0}.column-divider:hover span,.study-divider:hover span{background:var(--purple)}.study-root{min-width:0;min-height:0}.study-layout{height:100%;display:grid;grid-template-columns:minmax(0,var(--study-split,49%)) 12px minmax(0,1fr);min-height:0}.study-reader{background:var(--bg);padding-right:19px;overflow-y:auto;min-width:0;min-height:0;scrollbar-color:var(--line) transparent}.study-reader-top{height:52px;position:sticky;top:0;z-index:5;background:var(--bg);display:flex;align-items:center;padding:0 0 0 7px;font-size:11px;letter-spacing:1px;border-bottom:1px solid var(--line);gap:6px}.study-reader-top>span{white-space:nowrap}.study-reader-top .panel-index{margin-right:14px}.study-reader-top button{font-size:10px;letter-spacing:0;padding:5px 10px}.reader-tabs{display:flex;gap:7px;position:sticky;top:52px;background:var(--bg);z-index:5;padding:17px 0 12px 6px;align-items:center}.reader-tabs button{font-size:10px;padding:6px 10px;border-radius:50px;border:1px solid var(--line);background:none;color:var(--muted);white-space:nowrap}.reader-tabs button[aria-pressed=true]{border-color:var(--purple);background:var(--purple);color:white}.reader-tabs #font-size{border:0;margin-left:auto;padding:5px;font-size:13px;color:var(--text)}.study-article{padding:21px 12px 60px 7px;font-family:Montserrat,Arial,sans-serif;line-height:1.85;font-size:var(--reader-font);max-width:700px;color:var(--text)}.study-article h2{font-size:clamp(26px,2.4vw,38px);font-weight:500;line-height:1.11;letter-spacing:-1.1px;margin:11px 0 20px}.study-article h3{font-size:20px;letter-spacing:-.5px;line-height:1.3;margin-top:30px}.study-kicker{font-size:8px!important;letter-spacing:1.3px;color:var(--purple);margin-bottom:9px!important}.study-source{font-size:9px;color:var(--muted);line-height:1.5}.study-article p{margin-bottom:22px}.study-article blockquote{border:0;background:var(--yellow);color:#111;padding:20px;margin:28px 0;font-size:18px;line-height:1.55;transform:rotate(-1deg)}.study-article ul,.study-article ol{padding-left:20px}.study-endnote{font-size:10px!important}.study-source-link{font-size:11px;color:var(--purple)}.study-selection{bottom:30px}.study-board{background:var(--bg);color:var(--text);--study-line:var(--line);--study-paper:var(--bg);--study-muted:var(--muted);padding-left:6px;overflow:hidden}.board-heading{padding:0;height:119px;align-items:flex-start;padding-top:17px}.board-eyebrow{font-size:10px;letter-spacing:1px;color:var(--text);display:block;margin-bottom:21px}.board-eyebrow .panel-index{margin-right:13px}.board-heading h2{position:relative;max-width:270px;font-size:clamp(23px,2.1vw,32px);line-height:1.05;font-weight:500;letter-spacing:-1px;margin:0}.board-heading .orange{right:-10px;top:-9px;background:var(--orange);color:#fff;clip-path:polygon(50% 0,60% 25%,85% 12%,77% 39%,100% 50%,77% 60%,87% 88%,61% 77%,50% 100%,40% 77%,13% 88%,24% 60%,0 50%,24% 40%,13% 12%,40% 25%);width:39px;height:39px;font-size:23px;border-radius:0}.board-max{font-size:22px;color:var(--text);padding:0 4px;min-width:32px;min-height:32px}.board-toolbar{position:static;align-self:flex-start;padding:3px;margin:0 0 13px 0;border:1px solid var(--line);border-radius:50px;box-shadow:none;background:var(--bg);gap:0;z-index:4}.board-toolbar button{padding:7px;border-radius:50%;color:var(--text);font-size:10px;min-width:34px;min-height:34px;justify-content:center}.board-toolbar button[aria-pressed=true]{background:var(--purple);color:#fff}.board-toolbar svg{width:16px;height:16px}.board-toolbar-rule{margin:0 3px;background:var(--line)}.board-toolbar [data-add-note]{border-radius:40px;padding:6px 8px;gap:4px}.board-viewport{border-top:1px solid var(--line);background-size:22px 22px;background-image:radial-gradient(circle,var(--line) .8px,transparent .8px);min-height:120px}.board-world{top:15px}.board-note{border:0!important;border-radius:0!important;background:var(--yellow)!important;color:#111!important;box-shadow:4px 5px 0 #11111110;padding:0 15px 15px;max-width:calc(100vw - 60px)}.board-note.sage{background:#e9e5ff!important;color:#24164c!important}.note-handle{font-size:9px}.note-remove{font-size:19px;min-height:28px;min-width:24px}.board-note textarea{font-family:Montserrat,Arial,sans-serif;font-size:13px;line-height:1.7}.board-bottom{left:10px;right:5px;bottom:34px}.board-zoom{background:var(--bg);border:1px solid var(--line);border-radius:50px;gap:0}.board-zoom button{min-width:30px;min-height:32px}.board-save{font-size:8px;color:var(--muted);background:var(--bg);padding:3px;max-width:85px}.board-hint{left:9px;right:5px;bottom:11px;font-size:8px;color:var(--muted)}.app-footer{height:40px;flex-shrink:0;display:flex;align-items:center;padding:0 30px;gap:24px;border-top:1px solid var(--line);font-size:8px;color:var(--muted);letter-spacing:1px;background:var(--bg)}.app-footer a{color:var(--muted);font-size:9px;letter-spacing:0;text-decoration:none}.footer-slogan{margin-left:auto;border:1px solid var(--line);border-radius:50px;padding:1px 7px;letter-spacing:0;display:flex;align-items:center;gap:5px;color:var(--text);font-size:8px}.footer-slogan i{width:5px;height:5px;background:#176aeb;border-radius:50%}
body #theme-dialog,body #modal{background:var(--bg)!important;color:var(--text)!important;border:1px solid var(--line);border-radius:0!important;box-shadow:12px 12px 0 #694afe30;padding:26px;max-height:87dvh}#theme-dialog h2,#modal h2{font-family:Montserrat,Arial,sans-serif;letter-spacing:-.8px}#modal-body p,#modal-body ul{color:var(--text);font-size:14px}#theme-dialog-description{color:var(--muted)}.theme-dialog-footer{border-color:var(--line);color:var(--muted)}.quiet-button{color:var(--text)}#theme-classic{border:1px solid var(--line);border-radius:50px;padding:6px 10px}.appearance-tabs{border-color:var(--line)}.appearance-tabs button{color:var(--muted)}.appearance-tabs button[aria-selected=true]{color:var(--purple);border-color:var(--purple)}.theme-card,.mascot-card{border:1px solid var(--line)!important;color:var(--text)!important;background:var(--surface)!important;border-radius:12px!important}.theme-card small,.mascot-card small{color:var(--muted)!important}.theme-preview.preview-poster{background:#fff;color:#111}.preview-poster .preview-header{background:#eee}.preview-poster .preview-stage{background:#fff}.preview-poster .preview-chat{background:#694afe}.mascot-card[aria-pressed=true],.theme-card[aria-pressed=true]{outline:2px solid var(--purple)}.animal-options-details{color:var(--muted)}#toast{background:var(--purple);color:#fff;border:0;border-radius:50px;box-shadow:none;font-size:12px}.file-list{display:flex;flex-direction:column;gap:12px;margin-top:25px}.file-list button{background:var(--surface);padding:16px;color:var(--text);text-align:left;position:relative;border:1px solid var(--line)}.file-list strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere}.file-list small{font-size:9px;color:var(--muted);margin-top:8px;display:block}.file-icon{float:right;color:var(--purple);font-size:20px}.document-page{width:100%;height:auto}.document-text{margin:25px 0;border-bottom:1px solid var(--line)}.back-link{color:var(--purple)}.mini-sticker{display:inline-block;background:var(--orange);color:white;font-size:10px;padding:5px 12px;border-radius:50px;transform:rotate(-6deg);margin:0 0 20px}.file-chip{font-size:9px;background:var(--selected);color:var(--text);padding:5px;border:1px solid var(--line)}.attachment-chips{gap:5px;flex-wrap:wrap}.territory-map{max-height:430px}.map-region path{fill:var(--surface);stroke:var(--line)}.map-region.selected path{fill:#e8e1ff;stroke:var(--purple)}.map-region text{fill:var(--text)}.map-region .map-number,.map-region .map-here{fill:var(--purple)}.radar-grid,.radar-axis{stroke:var(--line)}.radar-choice circle{fill:var(--surface);stroke:var(--line)}.radar-choice text{fill:var(--text)}.radar-choice.selected circle{fill:var(--purple);stroke:var(--purple)}.radar-choice.selected text{fill:#fff}.radar-scale,.radar-zero{fill:var(--muted)}.radar-value,.radar-origin{fill:var(--purple);stroke:var(--purple)}.muted{color:var(--muted)!important;font-size:10px!important}
@media(min-width:1700px){.workspace{padding:25px 45px 0}.app-header,.app-footer{padding-inline:45px}.dialogue{padding-right:32px!important}.study-reader{padding-right:30px}.study-article{padding-right:25px}.companion{max-height:290px}.message{font-size:16px!important}}
@media(max-width:1150px){.app-header{height:66px;padding:0 20px;gap:14px}.brand-mark{width:92px}.course-heading{font-size:10px}.prototype-label{display:none}.top-button{font-size:10px}.workspace{padding:12px 17px 0;grid-template-columns:minmax(270px,var(--chat-width,33%)) 10px minmax(0,1fr)}.dialogue{padding-right:14px!important}.study-reader{padding-right:12px}.study-article{font-size:var(--reader-font);padding-left:4px;padding-right:3px}.study-reader-top{padding-left:4px;font-size:9px}.study-reader-top .panel-index{margin-right:8px}.study-reader-top button{font-size:9px;padding:5px 8px}.reader-tabs{gap:4px;padding-left:2px}.reader-tabs button{font-size:9px;padding:6px 8px}.study-layout{grid-template-columns:minmax(0,var(--study-split,49%)) 10px minmax(0,1fr)}.study-board{padding-left:3px}.companion{height:23vh;max-height:210px;min-height:150px}.companion h1{font-size:30px}.sticker.smile{right:6px}.message{font-size:13px!important}.board-heading h2{font-size:25px;max-width:220px}.board-heading .orange{right:-4px;width:30px;height:30px;font-size:18px}.board-toolbar button{padding:6px;min-width:32px}.board-toolbar [data-add-note]{font-size:9px;padding:6px}.board-toolbar-rule{margin:0 1px}.compose-actions small{font-size:7px}.app-footer{padding-inline:20px}.board-note{max-width:235px}}
@media(pointer:coarse){.top-button{min-height:42px}.reader-tabs button{min-height:38px}.board-toolbar button{min-width:36px;min-height:36px}.compose-actions .icon-button{min-width:38px;min-height:38px}.board-zoom button{min-width:34px;min-height:36px}.reader-tabs{gap:1px}.board-toolbar svg{width:15px;height:15px}.board-toolbar [data-add-note]{gap:2px}}
@media(max-height:730px){.companion{height:145px;min-height:120px;margin:7px 0 0}.companion h1{font-size:28px}.sticker.smile{top:-13px}.online{margin-top:9px}.workspace{padding-top:10px}.app-header{height:58px}.dialogue-heading,.study-reader-top{height:44px}.reader-tabs{top:44px;padding-top:12px}.board-heading{height:103px}.messages{gap:15px}.message-form{padding:9px!important}.app-footer{height:30px}.board-heading h2{font-size:26px}}
@media(max-width:850px){#app{min-width:850px}.app-header{flex-wrap:nowrap}.course-heading{flex-basis:auto;order:0}.workspace{min-height:0}.study-layout{display:grid;overflow:hidden}.study-reader,.study-board{height:100%;border:0}.study-divider{display:grid}.board-heading{height:113px}.study-board{border:0}.reader-tabs #font-size{display:none}.footer-slogan{display:none}}
@media(max-width:1100px){.companion h1{font-size:26px;letter-spacing:-1.1px}.companion-copy{min-width:0}#companion-avatar{width:40%}.board-toolbar [data-tool=eraser]{font-size:0;gap:0}.board-toolbar{max-width:100%}.board-toolbar [data-add-note]{min-width:34px}.board-heading h2{max-width:180px}.board-heading .orange{right:-45px;top:3px}}
