:root{--bg:#f5f5f0;--paper:#fff;--ink:#202c2c;--muted:#73807c;--line:#e5e8e1;--green:#25584f;--lime:#d8edb1;--purple:#6e65aa;--softpurple:#efedf8;--radius:20px;--font:'Manrope',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 var(--font)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9186dc;outline-offset:3px}.skip{position:fixed;left:10px;top:-70px;background:white;padding:12px;z-index:20}.skip:focus{top:10px}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#fcfcf9;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;font-size:25px;font-weight:800;letter-spacing:-1.4px;line-height:1.2}.brand-icon{font-size:31px;display:inline-flex;width:38px;height:38px;background:var(--green);color:var(--lime);border-radius:13px;justify-content:center;align-items:center;margin-right:9px;font-style:italic}.brand-dot{color:#8aaa65}.workspace-label{font-size:9px;letter-spacing:1.65px;color:var(--muted);margin:16px 0 35px;font-weight:700}nav{display:flex;flex-direction:column;gap:7px}nav a{padding:12px 13px;color:#6e7c76;border-radius:11px;font-weight:600;display:flex;align-items:center;gap:13px}nav a.active{background:var(--green);color:white;box-shadow:0 4px 12px #25584f16}nav a:not(.active):hover{background:#f0f1ea}.nav-icon{font-size:19px;width:22px;font-weight:400}.sidebar-note{margin-top:auto;border-radius:18px;background:#eef1e6;padding:20px;margin-bottom:24px}.tiny-star{font-size:30px;color:#6b8c55}.sidebar-note p{font-size:20px;letter-spacing:-.6px;line-height:1.3;margin:7px 0 14px}.sidebar-note>span:last-child{font-size:10px;color:var(--muted)}.profile{display:flex;gap:10px;align-items:center;padding-top:20px;border-top:1px solid var(--line);min-width:0}.profile small{display:block;font-size:10px;color:var(--muted)}.profile b{font-size:12px;display:block;max-width:136px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#e8e2d8;color:#695e51;font-weight:700;flex-shrink:0}.avatar.purple{background:var(--softpurple);color:var(--purple)}main{margin-left:242px;min-height:100vh}.topbar{height:83px;padding:0 44px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.studio-indicator{display:inline-block;background:#8baf77;height:7px;width:7px;border-radius:50%;margin-right:7px}.top-actions{display:flex;gap:24px;align-items:center}.top-actions a{color:var(--ink)}.live-label{font-size:10px}#app{max-width:1410px;margin:auto;padding:36px 44px 50px;min-height:calc(100vh - 160px)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1.1px;line-height:1.3;margin-bottom:8px;font-weight:800}h2{font-size:19px;letter-spacing:-.5px;font-weight:800;line-height:1.45;margin-bottom:12px}h3{font-size:14px;margin-bottom:5px;font-weight:800;line-height:1.55}.muted{color:var(--muted)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-heading p{color:var(--muted);margin:0;font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 17px;background:var(--green);color:white;font-weight:700;font-size:11px;line-height:1.6}.btn:hover{filter:brightness(.95)}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.btn.ghost{background:transparent;color:var(--green);border-color:#cdd6ca}.btn.light{background:var(--lime);color:#28483c}.btn.small{padding:8px 12px;font-size:10px}.btn.wide{width:100%}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.hero{background:#e6eddf;min-height:260px;border-radius:24px;display:grid;grid-template-columns:1.5fr 1fr;overflow:hidden;margin-bottom:24px;position:relative}.hero-copy{padding:33px 36px;position:relative;z-index:1}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:#5e7962;margin-bottom:14px}.hero h2{font-size:32px;letter-spacing:-1.3px;line-height:1.25;margin-bottom:14px}.hero p{font-size:12px;color:#657865;margin-bottom:20px}.hero-art{position:relative;display:flex;align-items:center;justify-content:center;min-height:260px}.hero-art:before{content:'';position:absolute;width:270px;height:270px;background:#d7e5c5;border-radius:50%;right:-5px;top:35px}.art-card{position:relative;background:#fffef8;width:165px;height:197px;border-radius:12px;transform:rotate(-10deg);box-shadow:8px 12px 0 #426e5912;display:flex;flex-direction:column;justify-content:space-between;padding:21px;color:var(--green)}.art-card b{font-size:66px;line-height:1;font-family:Georgia,serif;font-weight:400;letter-spacing:-6px}.art-card span{font-size:9px;font-weight:700;letter-spacing:2px;line-height:1.9}.art-star{position:absolute;right:35px;top:35px;font-size:78px;color:#86a673;transform:rotate(15deg);line-height:1}.art-chip{position:absolute;bottom:28px;right:22px;background:#fff;padding:11px 18px;border-radius:28px;font-size:10px;font-weight:700;box-shadow:0 7px 17px #385a3a0b;transform:rotate(5deg)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:30px}.stat{padding:20px 22px;background:var(--paper);border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr auto;gap:4px}.stat b{font-size:28px;letter-spacing:-1px}.stat .stat-icon{grid-column:2;grid-row:1/3;align-self:center;background:#f1f2e9;border-radius:13px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#758359}.stat small{font-size:10px;color:var(--muted)}.columns{display:grid;grid-template-columns:1.45fr 1fr;gap:24px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px}.section-head h2{margin:0}.text-link{font-size:10px;color:var(--green);font-weight:700;background:none;border:0;padding:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.panel.flush{padding:0 22px}.row{display:flex;align-items:center;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.grow{flex:1;min-width:0}.row p{margin:3px 0 0;font-size:10px;color:var(--muted)}.row h3{font-size:12px;margin:0}.badge{display:inline-flex;border-radius:6px;background:#edf3e5;color:#607d4d;font-size:9px;line-height:1.6;font-weight:700;padding:4px 8px;white-space:nowrap}.badge.purple{background:var(--softpurple);color:var(--purple)}.badge.orange{background:#fbf1e5;color:#a97b43}.badge.gray{background:#f0f1ee;color:#768077}.empty{text-align:center;padding:35px 22px;color:var(--muted)}.empty-symbol{font-size:31px;color:#a5b198;margin-bottom:10px}.empty h3{color:var(--ink);font-size:14px}.empty p{font-size:11px;max-width:340px;margin:8px auto 18px}.import-card{background:var(--softpurple);border:none;position:relative;overflow:hidden}.import-card .eyebrow{color:var(--purple)}.import-card p{font-size:12px;color:#7c7695}.import-card h2{font-size:25px;max-width:260px;letter-spacing:-.8px}.import-card .btn{background:#7366a9}.steps{display:flex;gap:7px;margin:22px 0}.step{border:1px solid #dcd6ed;background:#f8f6fe;color:#7a6c9b;border-radius:7px;padding:5px 8px;font-size:9px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.material-card{padding:22px;background:white;border:1px solid var(--line);border-radius:17px;display:flex;flex-direction:column;min-height:222px;transition:transform .2s,box-shadow .2s}.material-card:hover{transform:translateY(-3px);box-shadow:0 9px 24px #223c2c08}.material-card h3{font-size:15px;line-height:1.55;letter-spacing:-.3px;margin-top:18px}.material-card p{font-size:10px;color:var(--muted);margin-bottom:20px}.material-card .actions{margin-top:auto}.card-top{display:flex;justify-content:space-between;align-items:center}.material-mark{font-size:20px;color:#7d9470}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:22px}.toolbar input{max-width:350px}.toolbar .muted{font-size:11px;margin-left:auto}.field{display:block;margin:0 0 17px;font-size:11px;font-weight:700}.field input,.field select,.field textarea{display:block;margin-top:7px;width:100%}input,select,textarea{border:1px solid #dfe4da;border-radius:10px;background:white;color:var(--ink);padding:11px 13px;font-size:12px;max-width:100%}textarea{resize:vertical;min-height:110px;line-height:1.7}.field small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.dropzone{border:1.5px dashed #bab5d0;background:#f7f5fb;border-radius:18px;padding:40px 22px;text-align:center;transition:background .2s;cursor:pointer;display:block}.dropzone.drag{background:#e8e1fa;border-color:var(--purple)}.upload-icon{display:flex;width:55px;height:55px;align-items:center;justify-content:center;margin:0 auto 17px;background:white;color:var(--purple);font-size:27px;border:1px solid #e7e2f1;border-radius:16px}.dropzone h3{font-size:16px}.dropzone p{font-size:11px;color:#8a819b;margin:6px 0 15px}.dropzone input{max-width:260px;background:white;font-size:10px}.note{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0}.success-box,.error-box,.info-box{padding:16px;border-radius:12px;font-size:12px;margin:16px 0;background:#edf5e9;color:#547546}.error-box{background:#fff0ed;color:#9b4f40}.info-box{background:#f0eef8;color:#6e6392}.error-box ul{padding-left:20px;margin-bottom:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.preview-section{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.preview-section h3{font-size:12px}.passage{font-size:12px;line-height:1.9;background:#f7f8f3;border:1px solid var(--line);border-radius:12px;padding:20px;white-space:pre-wrap;overflow-wrap:anywhere}.question{border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:16px;background:white}.question legend{font-size:9px;font-weight:800;color:var(--green);padding:0 8px;letter-spacing:1px}.question h3{font-size:14px;margin-bottom:15px}.option{display:flex;gap:10px;align-items:flex-start;border:1px solid #e7e9e3;border-radius:9px;padding:10px 13px;cursor:pointer;margin:7px 0;font-size:12px}.option:has(input:checked){border-color:#82a18b;background:#f1f6ed}.option input{margin-top:5px;accent-color:var(--green)}.exercise-layout{display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:start}.exercise-side{position:sticky;top:24px}.exercise-side p{font-size:11px}.score{font-size:44px;letter-spacing:-2px;font-weight:800;color:var(--green)}.review{padding:17px 0;border-top:1px solid var(--line)}.review p{font-size:12px;margin-bottom:8px}.review .answer{color:#60814c}.review .incorrect{color:#a25a47}.pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f7f2;border:1px solid var(--line);border-radius:12px;padding:18px;font-size:11px;line-height:1.8}.invite-code{font:700 22px ui-monospace,monospace;letter-spacing:2px;word-break:break-all;display:block;background:#eff3e8;padding:17px;border-radius:10px;margin:14px 0}.loading{text-align:center;padding:90px 20px;color:var(--muted)}.loading h1{font-size:23px;color:var(--ink);margin-top:22px}.spinner{width:34px;height:34px;border:3px solid #dee5d7;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid var(--line);border-radius:22px;padding:32px;width:min(680px,calc(100vw - 28px));color:var(--ink);max-height:90vh;box-shadow:0 30px 100px #16302630}dialog::backdrop{background:#23382e66;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:17px;top:12px;border:0;background:transparent;color:var(--muted);font-size:27px}.dialog-title{padding-right:25px;font-size:23px;margin:5px 0 8px}.dialog-subtitle{font-size:12px;color:var(--muted);margin-bottom:24px}#toast{display:none;position:fixed;bottom:25px;left:calc(50% + 121px);transform:translateX(-50%);padding:14px 20px;background:#223e36;color:white;border-radius:12px;box-shadow:0 8px 26px #17372b22;max-width:min(490px,85vw);font-size:12px;z-index:50}footer{display:flex;justify-content:space-between;padding:20px 44px;color:#9bA399;font-size:9px;border-top:1px solid var(--line)}.auth-panel{max-width:520px;margin:50px auto;text-align:center;padding:40px}.auth-panel .field{text-align:left}.auth-panel h1{font-size:26px}.auth-panel .brand-icon{margin:0 auto 25px;width:55px;height:55px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){#app{padding-top:45px}.hero{min-height:295px}.hero-copy{padding:40px}.hero-art{min-height:295px}}@media(max-width:1180px){.sidebar{width:210px;padding:30px 17px}main{margin-left:210px}#app{padding:30px}.topbar{padding:0 30px}.cards{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1.2fr 1fr}.hero h2{font-size:28px}.hero-copy{padding:28px}.hero-art{transform:scale(.88)}#toast{left:calc(50% + 105px)}}@media(max-width:900px){.sidebar{width:185px;padding:26px 12px}.brand{font-size:21px}.brand-icon{width:32px;height:32px;margin-right:6px}.workspace-label{font-size:8px;letter-spacing:1.1px}nav a{font-size:12px;padding:11px}.sidebar-note{padding:15px}.sidebar-note p{font-size:18px}main{margin-left:185px}#app{padding:26px}.columns{grid-template-columns:1fr}.hero{grid-template-columns:1.6fr 1fr}.hero-art{transform:scale(.8);transform-origin:right center}.hero-copy{padding:25px}.hero h2{font-size:26px}.stats{gap:10px}.stat{padding:15px}.stat .stat-icon{display:none}.page-heading{align-items:flex-start}h1{font-size:26px}.exercise-layout{grid-template-columns:1fr}.exercise-side{position:static;grid-row:1}#toast{left:calc(50% + 92px)}}@media(max-width:650px){.sidebar{position:static;width:100%;height:auto;padding:20px 20px 0;border-right:0;background:#fcfcf9}.brand{font-size:24px}.brand-icon{width:34px;height:34px}.workspace-label{position:absolute;right:20px;top:25px;font-size:8px;margin:0;max-width:110px;text-align:right}.sidebar-note,.profile{display:none}nav{flex-direction:row;overflow-x:auto;margin:20px -20px 0;padding:0 16px 12px;gap:6px}nav a{white-space:nowrap;padding:9px 12px;font-size:10px;border-radius:9px;gap:6px}.nav-icon{font-size:14px;width:auto}main{margin:0}.topbar{height:52px;padding:0 20px;font-size:10px}.top-actions{gap:13px}.live-label{font-size:8px}#app{padding:25px 19px 35px}.page-heading{gap:12px;flex-wrap:wrap;margin-bottom:20px}h1{font-size:26px}.page-heading p{font-size:11px}.page-heading .btn{padding:9px 12px;font-size:10px}.hero{min-height:260px;grid-template-columns:1fr .6fr;border-radius:19px}.hero-copy{padding:25px 0 25px 24px}.hero h2{font-size:25px;line-height:1.3}.hero p{font-size:10px}.hero .eyebrow{font-size:8px;letter-spacing:1.1px}.hero-art{min-width:90px;transform:scale(.65);transform-origin:right center;right:5px}.art-card{min-width:150px}.art-star{right:-15px;top:28px}.art-chip{display:none}.hero-art:before{right:-100px}.hero .btn{font-size:9px;padding:10px}.stats{gap:9px;margin-bottom:25px}.stat{padding:13px 12px;border-radius:13px}.stat b{font-size:24px}.stat small{font-size:8px;line-height:1.5}.cards{grid-template-columns:1fr}.panel{padding:20px}.panel.flush{padding:0 18px}.row{gap:10px}.row .actions{gap:5px}.row .btn{font-size:9px;padding:7px}.row .badge{font-size:8px}.row h3{font-size:11px}.row p{font-size:9px}.row .avatar{width:34px;height:34px}.section-head h2{font-size:17px}.toolbar{flex-wrap:wrap}.toolbar input{width:100%;max-width:none}.toolbar .muted{margin-left:0}.detail-grid{grid-template-columns:1fr}.dropzone{padding:30px 15px}dialog{padding:25px 20px}.dialog-title{font-size:21px}.auth-panel{margin:20px 0;padding:27px}.question{padding:16px}.passage{padding:15px}footer{padding:20px;font-size:8px;gap:15px}#toast{left:50%}.exercise-layout{gap:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.auth-links{margin-top:20px;display:flex;justify-content:center;gap:12px}.signout-button{border:0;background:transparent;color:var(--ink);cursor:pointer;font:inherit;padding:8px}.auth-panel form{text-align:left;margin-top:25px}.auth-panel .btn.wide{width:100%;justify-content:center}.auth-panel input{width:100%}.invite-code{overflow-wrap:anywhere;word-break:break-all}
