@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{--ink:#102342;--muted:#6e7c96;--line:#e6ebf4;--page:#f5f7fc;--white:#fff;--blue:#3869f5;--blue2:#1c4bcc;--teal:#00b5ab;--navy:#112956;--shade:#eef3ff;--shadow:0 10px 36px rgba(30,58,108,.065);font-family:'Plus Jakarta Sans','DM Sans',system-ui,-apple-system,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--page);font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.52;cursor:not-allowed}input,select,textarea{border:1px solid #dbe3f0;background:white;border-radius:12px;padding:11px 13px;color:var(--ink);width:100%;outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:#7b9bfc;box-shadow:0 0 0 3px #e7edff}textarea{resize:vertical;min-height:90px}label{display:block;font-size:12px;font-weight:700;color:#4b5d7b;letter-spacing:.01em}label input,label select,label textarea{display:block;margin-top:6px}h1,h2,h3,h4,p{margin:0}h1{letter-spacing:-.045em;line-height:1.16}h2{letter-spacing:-.036em;line-height:1.2}h3{letter-spacing:-.02em;line-height:1.3}p{color:#596c88}a{color:var(--blue)}.muted{color:var(--muted)!important}.tiny{font-size:11px}.small{font-size:12px}.loading{height:100vh;display:grid;place-items:center;font-size:20px;font-weight:800;color:var(--blue)}.primary,.soft-btn,.ghost-btn,.danger-btn,.outline-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:11px;padding:11px 16px;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap;transition:transform .12s,box-shadow .12s}.primary{background:linear-gradient(125deg,#346df8,#244fd2);color:#fff;box-shadow:0 6px 15px #346cf530}.primary:hover{box-shadow:0 9px 18px #346cf547;transform:translateY(-1px)}.soft-btn{background:#e9efff;color:#2d55ce}.ghost-btn{background:transparent;color:#637491}.outline-btn{background:white;color:#344b76;border:1px solid #dce4f2}.danger-btn{background:#fff1f2;color:#d52c52}.full{width:100%}.icon-btn{width:35px;height:35px;border-radius:10px;border:1px solid #e2e8f2;background:white;color:#516487;display:inline-grid;place-items:center;font-size:18px}.badge{display:inline-block;border-radius:999px;background:#eaf0ff;color:#3158d2;font-weight:800;padding:4px 9px;font-size:10px;letter-spacing:.02em}.badge.green{background:#e2faf0;color:#078f62}.badge.orange{background:#fff4dc;color:#a97313}.badge.red{background:#ffedef;color:#c33250}.badge.grey{background:#eff2f6;color:#728197}.chip{display:inline-flex;align-items:center;gap:5px;background:#f0f4fd;padding:6px 9px;border-radius:8px;font-size:11px;font-weight:700;color:#617290}.alert{border:1px solid #cfe0ff;background:#eff5ff;color:#2a5292;border-radius:12px;padding:12px 14px;font-size:13px;margin:12px 0}.alert.danger{background:#fff0f3;border-color:#ffbecd;color:#b22048}.card{background:white;border:1px solid #e8edf5;border-radius:18px;padding:20px;box-shadow:var(--shadow)}.card h3{font-size:16px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.four-col{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.form-grid{display:grid;gap:15px}.flex{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.wrap{flex-wrap:wrap}.spacer{flex:1}.divider{height:1px;background:var(--line);margin:16px 0}.empty{padding:44px 20px;text-align:center;border:1px dashed #cad6eb;border-radius:18px;background:#fbfcff}.empty-icon{font-size:36px;margin-bottom:10px}.empty h3{margin-bottom:6px}.empty p{font-size:12px;max-width:420px;margin:0 auto 18px}.notice{padding:11px;border-radius:11px;background:#f1f6ff;color:#41618e;font-size:12px}.install-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 15% 0%,#daeeff 0,transparent 37%),var(--page)}.install-card{width:min(540px,100%);padding:35px;background:white;border:1px solid var(--line);border-radius:28px;box-shadow:0 18px 80px #244c9620}.install-card form{display:grid;gap:14px;margin:20px 0}.install-card h3{margin:13px 0 0}.install-card p{font-size:13px;margin:10px 0}.brandmark{width:49px;height:49px;border-radius:15px;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:800;background:linear-gradient(135deg,#3871f9,#10beb8);box-shadow:0 7px 15px #3a6ce630}
/* login */.auth-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);min-height:100vh;background:#fff}.auth-hero{position:relative;min-height:100vh;background:linear-gradient(145deg,#122e69,#2056c1 65%,#287ee0);padding:50px max(42px,8%);color:#fff;display:flex;flex-direction:column;overflow:hidden}.auth-hero:before{content:'';position:absolute;border:80px solid #ffffff08;width:500px;height:500px;border-radius:50%;right:-250px;top:-230px}.auth-hero:after{content:'';position:absolute;background:#a9e8f524;width:420px;height:420px;bottom:-270px;left:-160px;border-radius:50%}.auth-logo,.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:800;letter-spacing:-.04em}.logo-square{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#4f88ff,#2cd7c2);color:white;display:grid;place-items:center;font-size:21px;box-shadow:0 6px 14px #2456a233}.auth-hero h1{margin-top:85px;font-size:clamp(32px,4vw,58px);line-height:1.1;max-width:560px}.auth-hero h1 span{color:#77e8e5}.auth-hero .sub{color:#d0e1ff;font-size:15px;max-width:490px;margin-top:20px}.auth-points{display:flex;gap:13px;flex-wrap:wrap;margin-top:28px}.auth-points span{padding:8px 13px;border:1px solid #ffffff2e;background:#ffffff16;border-radius:99px;color:#eef7ff;font-size:11px;font-weight:700}.auth-art{position:relative;margin-top:48px;height:260px}.art-phone{position:absolute;width:190px;height:274px;left:24%;top:8px;transform:rotate(-8deg);border:8px solid #dceaff;border-radius:29px;background:#f7faff;box-shadow:22px 26px 25px #001f6740;color:#16316a;padding:15px}.art-phone.two{left:52%;top:31px;transform:rotate(12deg);width:175px;height:250px;z-index:1}.art-notch{height:6px;width:56px;border-radius:20px;background:#cbd9f0;margin:0 auto 16px}.art-band{background:linear-gradient(110deg,#3f78f2,#39c7df);height:60px;border-radius:13px;margin-bottom:14px}.art-line{height:9px;border-radius:20px;background:#d6e0f1;margin:10px 0}.art-line.short{width:65%}.art-card{height:43px;border:1px solid #e7edf7;border-radius:9px;margin:9px 0;background:#fff}.auth-panel{display:grid;place-items:center;padding:55px 35px}.auth-form{width:min(385px,100%)}.auth-form h2{font-size:34px;margin-bottom:12px}.auth-form p{font-size:14px;margin-bottom:33px}.auth-form label{margin:17px 0}.auth-hint{margin-top:25px;font-size:12px;text-align:center;color:#8b99aa}
/* shell */.shell{display:flex;min-height:100vh}.sidebar{width:252px;flex-shrink:0;background:#fff;border-right:1px solid #e5ebf5;position:sticky;top:0;height:100vh;padding:26px 17px;display:flex;flex-direction:column;z-index:3}.sidebar .brand{padding:0 11px 29px;font-size:16px}.brand small{display:block;font-size:9px;letter-spacing:.12em;color:#8491a8;font-weight:800}.side-label{font-size:10px;color:#94a2b7;font-weight:800;letter-spacing:.13em;padding:0 14px;margin:17px 0 8px}.nav-item{display:flex;align-items:center;gap:13px;border-radius:11px;color:#65748f;font-size:12px;font-weight:750;padding:12px 14px;margin:3px 0;text-decoration:none;border:0;background:transparent;width:100%;text-align:left}.nav-item span:first-child{font-size:19px;width:21px;display:inline-flex;justify-content:center}.nav-item:hover{background:#f3f6fc}.nav-item.active{background:#eaf0ff;color:#315cda}.nav-bottom{margin-top:auto}.user-mini{display:flex;align-items:center;gap:9px;padding:13px 11px;border-top:1px solid #edf0f5}.avatar{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;color:#2559c7;font-size:15px;font-weight:800;background:linear-gradient(125deg,#dbe7ff,#e4fff5);flex-shrink:0}.user-mini strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px;font-size:11px}.user-mini small{font-size:10px;color:#9da8b9}.main{min-width:0;flex:1}.topbar{height:78px;border-bottom:1px solid #e8edf5;background:#ffffffd9;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:0 31px;position:sticky;top:0;z-index:2;backdrop-filter:blur(12px)}.topbar h2{font-size:18px}.topbar .breadcrumb{font-size:11px;color:#9ba7b8;font-weight:700}.top-actions{display:flex;align-items:center;gap:9px}.content{max-width:1440px;padding:30px 32px 50px;margin:0 auto}.section-head{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:23px}.section-head h1{font-size:26px;margin-bottom:6px}.section-head p{font-size:12px}.kpi .value{font-size:29px;font-weight:800;letter-spacing:-.05em}.kpi .kpi-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eaf0ff;color:#3969ee;font-size:20px}.kpi p{font-size:11px;margin-top:7px}.hero-banner{position:relative;overflow:hidden;color:#fff;background:linear-gradient(110deg,#183f9e,#3d77ed 69%,#3fb9d3);border-radius:21px;padding:35px 36px;margin-bottom:21px;min-height:185px}.hero-banner:after{content:'✦';font-size:185px;color:#ffffff22;position:absolute;right:40px;top:-38px;transform:rotate(20deg)}.hero-banner h2{font-size:28px;margin:8px 0}.hero-banner p{color:#d7e7ff;font-size:13px;max-width:570px}.hero-banner .badge{color:#2146ac;background:#e2ebff}.list-card{border:1px solid #e7ecf5;padding:16px;border-radius:13px;background:white;display:flex;gap:13px;justify-content:space-between;align-items:center;margin:10px 0}.list-card h4{font-size:13px;margin:2px 0 6px}.list-card p{font-size:11px}.tile{background:white;border:1px solid #e5ebf5;border-radius:16px;padding:19px;display:flex;flex-direction:column;gap:10px;min-height:160px}.tile .tile-ico{font-size:28px}.tile h3{font-size:16px}.tile p{font-size:12px}.lesson-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px}.lesson-card{cursor:pointer;transition:.18s}.lesson-card:hover{transform:translateY(-3px);box-shadow:0 16px 29px #1647a414}.lesson-card .chapter-ico{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;font-size:27px;background:linear-gradient(135deg,#ecf2ff,#d9fff6);margin-bottom:12px}.lesson-content{max-width:820px}.lesson-content h2{font-size:24px;margin:20px 0 13px}.lesson-content p,.lesson-content li{font-size:14px;color:#435574;line-height:1.85}.lesson-content ul{padding-left:22px}.lesson-content .point{display:flex;gap:13px;background:#f4f7ff;border-radius:12px;padding:12px;margin:8px 0}.lesson-nav{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.quiz-choice{padding:12px 15px;border:1px solid #e0e7f3;border-radius:12px;background:#fff;text-align:left;width:100%;margin:6px 0;font-size:13px;color:#47607f}.quiz-choice.selected{border-color:#557af4;background:#eef3ff;color:#2450c5;font-weight:800}.table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;min-width:640px}.data-table th,.data-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #edf0f6;font-size:12px;vertical-align:middle}.data-table th{color:#8090a8;font-size:10px;text-transform:uppercase;letter-spacing:.06em}.data-table td strong{color:#192c4d}.data-table tr:hover td{background:#fafcff}.mini-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.mini-actions button{font-size:10px;padding:7px 10px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.project-card{position:relative;overflow:hidden}.project-thumb{height:100px;background:linear-gradient(135deg,#e9efff,#e5f8ff);border-radius:12px;margin-bottom:14px;padding:13px;display:flex;align-items:center;justify-content:center;font-size:35px}.project-card h3{margin:6px 0}.project-card p{font-size:11px}.project-card .actions{display:flex;gap:7px;margin-top:14px}
/* editor */.editor-shell .content{max-width:none;padding:18px 19px 32px}.studio-top{background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px 15px;margin-bottom:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.studio-top .project-name{width:min(280px,100%);font-weight:800;border-color:transparent;font-size:14px}.studio-top .project-name:hover{border-color:var(--line)}.studio-layout{display:grid;grid-template-columns:206px minmax(0,1fr) 255px;align-items:start;gap:14px}.studio-panel{border:1px solid var(--line);background:#fff;border-radius:15px;padding:14px;min-height:250px}.studio-panel h3{font-size:13px;margin-bottom:14px}.toolbox{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tool{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #e3eaf5;background:#fbfcff;border-radius:12px;padding:11px 5px;font-size:10px;font-weight:750;color:#4c6484}.tool span:first-child{font-size:22px}.tool:hover{background:#edf3ff;border-color:#9fbcff}.editor-center{min-width:0;background:linear-gradient(#edf1f9,#e9eef8);border:1px solid var(--line);border-radius:15px;min-height:700px;overflow:hidden}.pages{display:flex;gap:7px;align-items:center;background:#fff;padding:12px 16px;border-bottom:1px solid var(--line);overflow-x:auto}.page-tab{border:1px solid #e3eaf4;background:#fff;border-radius:9px;font-size:11px;padding:8px 10px;white-space:nowrap;color:#5d6c84;font-weight:750}.page-tab.active{border-color:#8eaaff;background:#e8efff;color:#2e59d1}.board-scroll{padding:34px 15px 60px;overflow:auto;display:flex;align-items:flex-start;justify-content:center}.phone{background:#1d293c;border:7px solid #25344c;border-radius:34px;padding:11px 7px 7px;box-shadow:0 22px 45px #0b245d30;position:relative;flex-shrink:0}.phone:before{content:'';position:absolute;top:6px;left:calc(50% - 33px);width:66px;height:9px;border-radius:0 0 8px 8px;background:#111e32;z-index:1}.phone svg{display:block;width:360px;height:700px;border-radius:18px;touch-action:none;background:#fff;cursor:crosshair}.phone.preview svg{cursor:default}.board-caption{text-align:center;font-size:10px;color:#97a3b5;margin-top:13px}.prop-list{display:grid;gap:11px}.prop-list label{font-size:11px}.prop-list input,.prop-list select{padding:9px 10px;font-size:12px;border-radius:9px}.prop-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.prop-list input[type=color]{padding:3px;height:34px}.studio-hint{margin:13px 0 0;padding:10px;background:#f4f7fc;color:#71819a;font-size:10px;border-radius:9px}.tool-divider{border-top:1px solid #edf0f5;margin:16px 0}.color-swatches{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.swatch{width:23px;height:23px;border-radius:8px;border:2px solid white;box-shadow:0 0 0 1px #dde5f2}.template-row{display:grid;gap:7px}.template-row button{text-align:left;display:flex;gap:9px;align-items:center}.kbd{display:inline-block;background:#e6eaf0;padding:2px 5px;border-radius:4px;font-size:10px}
/* overlay */.modal-overlay{position:fixed;inset:0;background:#111e39aa;display:grid;place-items:center;z-index:50;padding:18px;backdrop-filter:blur(2px)}.modal{background:#fff;border-radius:20px;box-shadow:0 20px 60px #091f4252;width:min(535px,100%);max-height:90vh;overflow-y:auto;padding:24px}.modal h2{font-size:21px}.modal p{font-size:12px}.modal form{display:grid;gap:14px;margin-top:20px}.modal-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.toast{position:fixed;bottom:24px;right:24px;z-index:80;background:#102d60;color:#fff;box-shadow:0 10px 35px #153a7060;padding:13px 18px;border-radius:12px;font-size:12px;font-weight:750;max-width:380px}.toast.error{background:#ba2146}.mobile-nav{display:none}.hamburger{display:none}.preview-label{position:absolute;right:15px;top:10px;background:#d5f8eb;color:#0b8762;border-radius:30px;font-size:10px;font-weight:800;padding:5px 9px}
@media(max-width:1250px){.studio-layout{grid-template-columns:170px minmax(0,1fr) 225px}.sidebar{width:210px}.content{padding:24px}.editor-shell .content{padding:12px}.four-col{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1000px){.studio-layout{grid-template-columns:1fr 240px}.studio-layout .studio-panel:first-child{grid-column:1/-1;min-height:0}.toolbox{grid-template-columns:repeat(6,1fr)}.sidebar{width:74px;padding:18px 8px}.sidebar .brand{padding:2px 7px 26px}.sidebar .brand .brandtext,.nav-item .nav-text,.side-label,.user-mini .userinfo{display:none}.nav-item{justify-content:center;padding:10px}.nav-item span:first-child{font-size:23px}.user-mini{justify-content:center}.auth-art{transform:scale(.8);transform-origin:left top}}
@media(max-width:720px){.auth-shell{grid-template-columns:1fr}.auth-hero{min-height:auto;padding:24px}.auth-hero h1{font-size:24px;margin-top:25px}.auth-hero .sub{font-size:12px;margin-top:9px}.auth-art{display:none}.auth-panel{padding:40px 24px}.auth-form h2{font-size:25px}.sidebar{display:none}.shell{display:block;padding-bottom:68px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:7px 3px max(7px,env(safe-area-inset-bottom))}.mobile-nav .nav-item{display:grid;justify-items:center;gap:1px;padding:4px 3px;max-width:95px;font-size:9px}.mobile-nav .nav-item .nav-text{display:block}.mobile-nav .nav-item span:first-child{font-size:18px}.topbar{height:61px;padding:0 17px}.topbar .breadcrumb{display:none}.topbar h2{font-size:14px}.top-actions .chip{display:none}.content{padding:19px 14px 35px}.section-head h1{font-size:22px}.hero-banner{padding:25px;min-height:145px}.hero-banner h2{font-size:23px}.hero-banner:after{font-size:115px;top:0;right:7px}.four-col,.three-col,.two-col,.form-row{grid-template-columns:1fr}.studio-layout{display:block}.studio-layout>.studio-panel{margin-bottom:12px}.toolbox{grid-template-columns:repeat(5,1fr)}.studio-layout>.studio-panel:last-child{margin-top:12px}.editor-center{min-height:0}.board-scroll{justify-content:flex-start;padding:22px 13px;overflow-x:auto}.phone{transform:scale(.83);transform-origin:top left;margin-right:-70px;margin-bottom:-135px}.studio-top .project-name{width:100%}.install-card{padding:23px}.card{padding:16px}}
