:root{--accent:#003da5;--accent-strong:#003da5;--style-red:#cf142b;--sidebar-top:#003a9c;--sidebar-bottom:#001f67;--style-radius:12px;--icon-weight:1.6}
.sidebar{background:linear-gradient(170deg,var(--sidebar-top),var(--sidebar-bottom))}.icon{stroke-width:var(--icon-weight)}.nav a.active{color:var(--accent-strong);border-radius:var(--style-radius)}.nav a.active:before{background:var(--style-red)}.btn.primary,.chip.active{background:var(--accent-strong);border-color:var(--accent-strong)}.panel,.course-card,.resource,.lesson-card{border-radius:var(--style-radius)}.topbar{justify-content:flex-end;gap:15px}.menu-toggle{margin-right:auto}.header-language{display:grid;place-items:center;background:none;border:0;padding:4px}.header-language svg{width:29px;height:21px;border-radius:4px}.account-controls{margin-left:auto}.pin-toggle{border:0;background:none;display:grid;place-items:center;padding:7px;color:#ffdb57;cursor:pointer}.pin-toggle.unpinned{opacity:.42}.pin-toggle:hover,.pin-toggle:focus-visible{opacity:1;background:#ffdb5728;border-radius:8px}.pin-icon{color:#ffdb57}.pin-icon svg{transform:rotate(24deg)}.pin-toggle.pinned{filter:drop-shadow(0 1px 1px #97710730)}
.comments-list{--branch:#b6c9e6}.social-comment{position:relative}.social-comment.is-reply{margin-left:calc(min(var(--depth),4)*38px)}.social-comment.is-reply:before{content:'';position:absolute;width:24px;left:-23px;top:-21px;height:40px;border-left:2px solid var(--branch);border-bottom:2px solid var(--branch);border-radius:0 0 0 14px}.social-comment:has(+.is-reply)>div:first-child:after{content:'';position:absolute;left:17px;top:40px;bottom:-21px;border-left:2px solid var(--branch)}.reply-reference{display:block;font-size:11px!important;color:var(--muted)!important;text-decoration:none!important;margin-bottom:4px}.comment-bubble>strong{color:var(--ink)}.comment-bubble:target{box-shadow:0 0 0 3px #92b6ff}.presence-online{font-size:11px;color:#258356;display:inline-flex;align-items:center;gap:5px}.presence-online:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.profile-settings.icon-settings{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.icon-settings .setting-card{display:grid;place-items:center;position:relative;width:64px;height:58px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:15px;font-size:30px;color:var(--ink)}.setting-card .icon{width:27px;height:27px}.setting-card small{position:absolute;right:1px;bottom:1px;min-width:26px;padding:3px;border-radius:6px;background:var(--line);color:var(--ink);font-size:9px;line-height:1}.setting-card[aria-pressed=true] small{background:var(--accent-strong);color:white}.setting-card:hover{box-shadow:0 4px 15px #143f8415}
.world-map{border-radius:22px;border:1px solid var(--line);height:min(660px,70dvh);box-shadow:0 10px 45px #00205010}.leaflet-tile-pane{filter:saturate(.5) contrast(.95) brightness(1.03)}html[data-theme=dark] .leaflet-tile-pane{filter:brightness(.75) saturate(.4)}.map-avatar-pin{position:relative;display:block;width:48px;height:48px;border-radius:50% 50% 50% 5px!important;transform:rotate(-45deg);border:3px solid white;background:var(--accent-strong);box-shadow:0 4px 14px #18376b55}.map-avatar-pin .avatar{width:42px;height:42px;transform:rotate(45deg);border-radius:50%}.map-avatar-pin i{position:absolute;bottom:-7px;right:-8px;transform:rotate(45deg);display:block}.map-avatar-pin i svg{width:24px;height:18px;border-radius:3px}.map-avatar-pin b{position:absolute;left:-8px;top:-8px;transform:rotate(45deg);font-size:10px;background:var(--accent-strong);color:white;border:2px solid white;border-radius:50%;min-width:17px;text-align:center}.map-people small{display:block;font-size:10px;color:#657791}.map-people .avatar{width:35px;height:35px}
.lesson-outline .dot{display:inline-grid;place-items:center;border:2px solid #538ee1;border-radius:50%;color:#216cda;background:var(--white);width:22px;height:22px;min-width:22px;font-size:15px;font-weight:900;line-height:1;margin-right:5px}.lesson-outline .dot.done{background:#2774da;border-color:#2774da;color:white;box-shadow:0 0 0 3px #2774da14}.lesson-outline a{align-items:center;line-height:1.5}.lesson-outline .progress{height:7px}.progress>span{background:var(--accent);transition:width .35s ease}.draft-label{background:#fff3cc;color:#725700;padding:10px 15px;border-radius:8px;font-size:12px}.protected-lesson .rich-content,.protected-lesson .lesson-video{user-select:none;-webkit-user-select:none}.protected-lesson img{-webkit-user-drag:none;user-select:none}.hosted-film{display:block;width:100%;max-height:75dvh;border-radius:12px;background:#0b1020}.resource-icon{width:35px;height:29px;flex-shrink:0}.resource .file-type{display:grid;place-items:center;border-radius:5px;border:1px solid currentColor;font-size:10px;font-weight:800;background:var(--white)}.file-type.pdf{color:#da263c}.file-type.word{color:#2675c8}.file-type.excel{color:#197447}.file-type.audio,.file-type.video{color:#7b51ba;font-size:19px}.resource>div{flex:1}.resource>span:last-child{font-size:23px;color:var(--muted)}.resource:hover{border-color:var(--accent)}
dialog.document-modal{width:96vw;height:94dvh;max-width:1600px;max-height:94dvh;padding:0;background:#292c33;border:0;border-radius:12px;overflow:hidden}.document-modal .close-modal{z-index:3;color:#fff;right:10px;top:12px;background:#ffffff20;border-radius:50%;font-size:25px}.document-toolbar{height:62px;display:flex;align-items:center;gap:15px;padding:12px 65px 12px 22px;color:white}.document-toolbar strong{flex:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px}.document-toolbar a{background:#ffffff20;color:white;border:0;border-radius:50%;font-size:22px}.document-stage{height:calc(94dvh - 62px);overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:12px 28px 20px}.document-frame{display:block;border:0;width:100%;height:100%;background:#fff}.document-image{max-width:100%;max-height:100%;object-fit:contain}.document-stage video{width:100%;max-height:100%}.document-stage audio{margin:auto;width:min(620px,100%)}.document-text,.document-office{background:white;color:#222;padding:35px;max-width:980px;width:100%;min-height:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}
.style-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.style-option{padding:22px}.style-option h2{font-size:17px;margin:0 0 15px}.style-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.style-preview{padding:0;display:flex;border:2px solid transparent;border-radius:10px;overflow:hidden;min-height:158px;text-align:left;background:#f1f5fc;color:#193052;cursor:pointer}.style-preview.dark{background:#101b30;color:#ecf1ff}.style-preview:hover,.style-preview:focus-visible{border-color:var(--sample-accent);transform:translateY(-2px)}.sample-sidebar{width:34px;flex-shrink:0;background:linear-gradient(var(--sample-top),var(--sample-bottom));color:white;display:flex;align-items:center;flex-direction:column;gap:12px;padding:12px 3px}.sample-sidebar img{width:23px;height:23px}.sample-sidebar i{font-style:normal;font-size:13px}.sample-body{flex:1;padding:8px;min-width:0}.sample-toolbar{display:flex;justify-content:space-between;font-size:10px}.sample-banner{height:33px;display:block;margin:10px 0;background:url('/malecon.png') center/cover;border-radius:var(--sample-radius)}.sample-cards{display:flex;gap:5px}.sample-cards i{background:#fff;color:var(--sample-accent);flex:1;font-style:normal;font-size:9px;line-height:1.8;border-radius:var(--sample-radius);padding:6px}.dark .sample-cards i{background:#25334b;color:#adc9ff}.sample-body>strong{font-size:10px;display:block;margin-top:10px}.style-save-row{display:flex;gap:10px;justify-content:center;margin-top:16px}.gif-picker{background:var(--white);border:1px solid var(--line);box-shadow:0 10px 35px #132e4f30;border-radius:16px;padding:14px;width:min(360px,100%);max-height:440px;overflow:auto}.attachment-picker:has(.gif-picker){padding-left:45px;display:block}.gif-picker input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px}.gif-results{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.gif-results button{background:var(--paper);border:0;border-radius:8px;overflow:hidden;padding:0;height:110px}.gif-results img{width:100%;height:100%;object-fit:cover}.gif-picker footer{font-size:9px;color:var(--muted);text-align:center;text-transform:uppercase;letter-spacing:1px}.gif-status{font-size:12px;color:var(--muted)}
@media(max-width:850px){.style-gallery{grid-template-columns:1fr}.topbar{height:65px}.document-stage{padding:0 5px 8px}.document-toolbar{padding-left:12px}.social-comment.is-reply{margin-left:calc(min(var(--depth),3)*21px)}.social-comment.is-reply:before{width:12px;left:-13px}.comment-bubble{padding:11px 12px}.icon-settings .setting-card{width:54px;height:55px}.attachment-picker:has(.gif-picker){padding-left:0}}
@media(prefers-reduced-motion:reduce){.style-preview:hover{transform:none}.progress>span{transition:none}}

.gif-credit{display:block;font-size:10px;color:var(--muted);margin:-6px 0 10px;max-width:350px;overflow-wrap:anywhere}

.document-stage:has(.pdf-pages){display:block}.pdf-status{text-align:center;color:#cbd3df;font-size:12px;margin:0 0 12px}.pdf-pages{margin:0 auto;max-width:none}.pdf-page{background:white;margin-bottom:18px;box-shadow:0 3px 15px #0004;min-height:100px}.pdf-page canvas{display:block}.pdf-zoom{display:flex;align-items:center;gap:8px}.pdf-zoom button{border:0;background:#ffffff20;color:white;border-radius:50%;width:30px;height:30px;cursor:pointer}.pdf-zoom span{font-size:11px;min-width:35px;text-align:center}
