@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/vendor/inter/InterVariable.woff2') format('woff2')}
@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url('/assets/vendor/inter/InterVariable-Italic.woff2') format('woff2')}
:root{--green:#08766d;--dark:#075f58;--mint:#e5f5ef;--bg:#f7f9f8;--surface:#fff;--text:#15211f;--muted:#66736f;--line:#dce5e1;--danger:#a12e35;--radius:12px;font-family:Inter,Arial,sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}img{max-width:100%;display:block}button{color:inherit}p{line-height:1.65}h1,h2,h3,h4,p{margin:0}h1,h2,h3{letter-spacing:-.045em}h1{font-size:48px;line-height:1.13;font-weight:800}h2{font-size:30px;font-weight:750;line-height:1.2}h3{font-size:21px;line-height:1.3;font-weight:700}small{font-size:13px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[contenteditable]:focus-visible{outline:3px solid var(--green);outline-offset:4px}::selection{background:#c1e6db}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;left:12px;top:-80px;z-index:100;padding:12px;background:white;border:2px solid var(--green)}.skip:focus{top:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:9px;padding:13px 22px;font-weight:600;font-size:15px;line-height:1.35;white-space:nowrap;transition:background .15s,box-shadow .15s}.button.primary{background:var(--green);color:white}.button.primary:hover{background:var(--dark)}.button.secondary{background:white;border-color:var(--line);color:var(--green)}.button.secondary:hover{background:var(--mint);border-color:#abcfc4}.button.danger{background:#fff2f1;color:var(--danger);border-color:#e8c1c1}.button.small{padding:8px 13px;font-size:13px}.text-link{display:inline-flex;align-items:center;gap:12px;color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:5px}.text-button{border:0;padding:0;background:transparent;color:var(--green);text-align:left;font-weight:500}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;background:transparent;border:0;border-radius:8px}.icon-button:hover{background:var(--mint)}.ph{font-size:24px;line-height:1;vertical-align:middle;flex-shrink:0}.muted{color:var(--muted)}.large{font-size:20px}.eyebrow{font-size:11px;text-transform:uppercase;font-weight:700;letter-spacing:.13em;color:var(--green);display:block}.header{height:85px;display:flex;align-items:center;justify-content:space-between;max-width:1308px;margin:auto;gap:38px;padding:8px 0}.brand{width:170px;flex-shrink:0;display:block}.brand img{width:170px;height:56px;object-fit:contain}.main-nav{display:flex;align-items:center;gap:49px;margin-left:125px}.main-nav a{display:flex;align-items:center;gap:9px;font-weight:500;color:var(--green);font-size:17px}.main-nav .ph{font-size:15px}.main-nav a:hover,.login-link:hover{text-decoration:underline;text-underline-offset:6px}.header-actions{display:flex;align-items:center;gap:36px}.header-actions>.button{min-height:50px;padding-left:30px;padding-right:30px;border-radius:12px}.login-link{color:var(--green);font-size:17px;font-weight:500}.account-link{display:flex;gap:6px;align-items:center;color:var(--green);max-width:160px}.account-link span{max-width:110px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.menu-toggle{display:none}.mobile-nav{background:white;border-top:1px solid var(--line);padding:16px 6%;position:absolute;left:0;right:0;z-index:40;box-shadow:0 10px 20px #1230250b}.mobile-nav a{display:block;padding:14px 0}.hero{position:relative;text-align:center;padding:27px 24px 0;max-width:1487px;margin:auto}.hero>.eyebrow{font-size:12px;letter-spacing:.4em;margin-bottom:15px}.hero h1{font-size:68px;font-weight:850;line-height:1.12;letter-spacing:-.055em;color:var(--green)}.hero>p{font-size:22px;font-weight:500;color:var(--muted);margin-top:10px;letter-spacing:-.04em}.hero-search{display:flex;align-items:center;gap:17px;border:1px solid #d0d9d6;background:white;border-radius:38px;max-width:776px;margin:26px auto 0;padding:5px 9px 5px 28px;height:65px}.hero-search>.ph{color:var(--green);font-size:28px}.hero-search input{min-width:0;flex:1;border:0;background:transparent;font-size:18px;padding:12px 0;color:var(--text);outline-offset:0}.hero-search input:focus{outline:0}.hero-search:focus-within{box-shadow:0 0 0 3px #08766d44}.hero-search input::placeholder{color:#778680}.hero-search button{border-radius:20px;width:140px;height:53px;font-size:17px}.hero-doodle{position:absolute;pointer-events:none;object-fit:contain}.doodle-left{left:3.3%;top:125px;width:190px;height:160px;transform:rotate(-5deg)}.doodle-right{right:3.2%;top:18px;width:180px;height:247px}.category-strip{display:flex;align-items:center;justify-content:center;max-width:1200px;margin:38px auto 53px;padding:0 10px;gap:0}.category-strip a{display:flex;align-items:center;gap:18px;padding:0 30px;color:var(--green);font-size:14px;font-weight:500;border-right:1px solid #d1ddda;white-space:nowrap;min-height:28px}.category-strip a:first-child{padding-left:0}.category-strip a:last-child{border:0;padding-right:0}.category-strip a:hover span{text-decoration:underline;text-underline-offset:6px}.category-strip .ph{font-size:28px}.home-feature{max-width:1278px;margin:auto}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.section-heading h2{font-size:34px;font-weight:800;color:var(--green);letter-spacing:-.04em}.section-heading>a{color:var(--green);border-bottom:1px solid #98bbb3;padding-bottom:4px;display:flex;align-items:center;gap:14px;font-size:17px;font-weight:500}.editorial-grid{display:grid;grid-template-columns:58% 1fr;gap:20px}.project-image{overflow:hidden;border-radius:7px;display:block;background:var(--mint)}.project-image img{height:100%;width:100%;object-fit:cover;transition:transform .35s}.project-image:hover img{transform:scale(1.025)}.project-card h3 a:hover{color:var(--green)}.project-card-copy{padding:16px 12px 12px}.project-card .eyebrow{font-size:10px;margin-bottom:5px}.project-card p{color:var(--muted);font-size:15px;line-height:1.5;margin-top:5px}.project-card small{color:var(--muted);display:block;margin-top:11px}.project-card.lead .project-image{height:397px}.project-card.lead .project-card-copy{padding:17px 30px 0}.project-card.lead h3{font-size:28px;font-weight:750;letter-spacing:-.04em}.project-card.lead p{font-size:19px;line-height:1.5}.editorial-side{display:grid;grid-template-rows:1fr 1fr;gap:10px}.project-card.horizontal{display:grid;grid-template-columns:50% 1fr;gap:18px}.horizontal .project-image{height:193px}.horizontal .project-card-copy{border-top:1px solid var(--line);padding:41px 0 0}.horizontal h3{font-size:20px;letter-spacing:-.05em}.horizontal p{font-size:14px;line-height:1.5}.horizontal small{display:none}.home-education{max-width:1278px;margin:96px auto 0;display:grid;grid-template-columns:1fr 1fr;background:var(--mint);border-radius:18px;overflow:hidden}.home-education>div{padding:58px}.home-education h2{font-size:42px;color:var(--green);margin-top:15px}.home-education p{margin:18px 0 25px;color:var(--muted);max-width:390px}.home-education>.illustrative-media>img{height:100%;min-height:400px;max-height:460px;width:100%;object-fit:cover}.home-invite{text-align:center;padding:95px 20px}.home-invite h2{font-size:40px;color:var(--green);margin:15px 0}.home-invite p{color:var(--muted);margin-bottom:23px}.footer{background:white;border-top:1px solid var(--line);padding:55px max(6%,calc((100% - 1278px)/2)) 30px;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}.footer-brand{display:block;width:170px;max-width:100%}.footer-brand img{width:100%;height:auto}.footer p{color:var(--muted);font-size:15px;margin:10px 0}.footer small{color:var(--muted)}.footer nav{display:flex;flex-direction:column;gap:13px;font-size:14px}.footer nav strong{font-weight:600;margin-bottom:5px}.footer nav a{color:var(--muted)}.footer nav a:hover{color:var(--green);text-decoration:underline}.environment{grid-column:1/-1;padding-top:25px;border-top:1px solid var(--line);font-size:11px}.container{max-width:1278px;margin:auto;padding:45px 0 85px;min-height:60vh}.container.narrow{max-width:800px}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:35px}.page-intro h1{margin-top:11px;color:var(--green)}.page-intro p{color:var(--muted);margin-top:15px;max-width:700px;font-size:17px}.panel{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:28px;margin-bottom:24px}.panel h2{margin-bottom:18px}.panel h3{margin-top:26px;margin-bottom:15px}.panel p{margin:10px 0 18px}.panel.soft{background:var(--mint);border-color:transparent}.panel summary{font-weight:600;color:var(--green);cursor:pointer}.panel[open] summary{margin-bottom:24px}.stack{display:flex;flex-direction:column;gap:21px}.stack>.button{align-self:flex-start}label{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:500}input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid #c9d6d0;border-radius:7px;background:white;min-height:45px;color:var(--text);padding:11px 13px;width:100%;font-size:15px;line-height:1.4}textarea{min-height:110px;resize:vertical}input::placeholder,textarea::placeholder{color:#8b9692}input[type=checkbox],input[type=radio]{accent-color:var(--green);width:18px;height:18px}input[type=file]{font-size:13px}input:disabled{background:#f0f2f1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-message,.notice{background:var(--mint);padding:15px 18px;border-radius:8px;font-size:14px;color:var(--dark);line-height:1.5;margin:12px 0 22px}.form-message.error,.notice.danger{background:#fff0ee;color:var(--danger);border:1px solid #e7c0bc}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.fine-print{font-size:12px;color:var(--muted);margin-top:20px}.loading{padding:35px;color:var(--muted);text-align:center}.empty-state{padding:65px 24px;text-align:center;border:1px dashed var(--line);border-radius:12px;background:white}.empty-state>.ph{font-size:38px;color:var(--green)}.empty-state h2{margin:18px 0 10px;font-size:25px}.empty-state p{color:var(--muted);margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 22px}.cards .project-image{aspect-ratio:1.45}.cards .project-card-copy{padding:18px 2px}.cards h3{font-size:21px}.explore-search{display:flex;gap:12px;margin-bottom:30px}.search-field{position:relative;flex:1}.search-field .ph{position:absolute;left:14px;top:12px;color:var(--green)}.search-field input{padding-left:48px!important}.explore-layout{display:grid;grid-template-columns:235px 1fr;gap:35px}.filters h2{font-size:20px;margin-bottom:25px}.filters label{margin-bottom:21px}.filters .button{width:100%;margin-bottom:20px}.filters .text-link{font-size:13px}.feed>.muted{margin-bottom:20px}.pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}.auth-layout{max-width:1140px;margin:55px auto 85px;display:grid;grid-template-columns:1.15fr 1fr;border:1px solid var(--line);background:white;border-radius:18px;overflow:hidden}.auth-story{background:var(--mint);padding:50px}.auth-story h1{font-size:58px;color:var(--green);margin:20px 0}.auth-story p{color:var(--muted);max-width:350px}.auth-story img{height:220px;width:100%;object-fit:cover;margin-top:35px;border-radius:9px}.auth-panel{padding:45px}.auth-tabs{display:flex;gap:32px;border-bottom:1px solid var(--line);margin-bottom:38px}.auth-tabs a{padding-bottom:15px;color:var(--muted);font-size:14px}.auth-tabs a[aria-current]{color:var(--green);border-bottom:2px solid var(--green);font-weight:600}.auth-panel h2{font-size:28px;margin-bottom:27px}.auth-panel .text-link{margin-top:24px;font-size:13px}.auth-panel .button{width:100%}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);overflow:auto;margin-bottom:30px}.tabs button,.tabs a{background:transparent;border:0;padding:15px 0;font-size:14px;white-space:nowrap;color:var(--muted)}.tabs button[aria-selected=true]{border-bottom:2px solid var(--green);color:var(--green);font-weight:600}.rows{display:flex;flex-direction:column;gap:15px}.row-card{display:flex;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:9px;background:white;padding:23px;align-items:center}.row-card h3{font-size:20px}.row-card p{color:var(--muted);font-size:14px;margin-top:8px}.row-card .actions{flex-shrink:0}.badge{display:inline-block;color:var(--dark);background:var(--mint);padding:5px 9px;font-size:11px;border-radius:5px;font-weight:600}.editor-shell{max-width:1370px;margin:auto;padding:22px 25px 70px}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:15}.editor-heading>div{display:flex;align-items:center;gap:13px}#save-status{font-size:12px;color:var(--muted);max-width:180px}.editor-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:35px}.editor-nav{align-self:start;position:sticky;top:105px;display:flex;flex-direction:column;gap:20px;font-size:13px;padding:15px 0}.editor-nav p{color:var(--muted);font-size:12px;margin:15px 30px 0 0}.editor-form>.panel{padding:34px;scroll-margin-top:105px}.editor-form h1{font-size:38px;margin:10px 0 30px;color:var(--green)}.editor-form>section>label{margin-bottom:20px}.editor-form label{margin-bottom:20px}.rich-wrap{border:1px solid #c9d6d0;border-radius:7px;overflow:hidden;margin-bottom:24px}.rich-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border-bottom:1px solid var(--line);background:#f9fbfa}.rich-toolbar button{border:0;padding:8px;background:transparent;font-size:12px;border-radius:4px;font-weight:600}.rich-toolbar button:hover{background:var(--mint)}.tiptap{padding:18px;min-height:140px;outline:none}.tiptap p+p{margin-top:12px}.tiptap pre{background:#182e28;color:#e5f5ef;padding:15px;border-radius:6px;white-space:pre-wrap}.tiptap h2{font-size:25px;margin:15px 0}.tiptap h3{font-size:20px;margin:12px 0}.tiptap ul,.tiptap ol{padding-left:22px}.cover-control{display:flex;gap:20px;align-items:center}.cover-control img{width:130px;height:90px;object-fit:cover;border-radius:6px}.upload-button{display:inline-flex!important;position:relative;align-items:center;flex-direction:row;gap:10px;padding:15px 18px;background:var(--mint);color:var(--green);border:1px dashed #a5c8bb;border-radius:8px;cursor:pointer;font-weight:600;width:max-content;max-width:100%}.upload-button input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer}.upload-button:focus-within{outline:3px solid var(--green);outline-offset:3px}.material-row{display:grid;grid-template-columns:minmax(0,2fr) .7fr .7fr minmax(0,1.5fr) 35px;gap:8px;align-items:end;margin-bottom:12px}.material-row label{margin:0!important;font-size:11px}.tool-row{display:flex;gap:12px;align-items:center;margin-bottom:12px}.tool-row label{margin:0!important}.tool-row>.tool-name{flex:1}.tool-row>.check-label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;font-size:12px}.step-edit{padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:9px;margin-bottom:22px}.step-edit header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.step-edit header h3{margin:0}.step-edit .rich-wrap{background:white}.step-edit .file-list{margin-top:10px}.file-row{display:grid;grid-template-columns:32px 1fr 175px 35px;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}.file-row>div{overflow:hidden}.file-row strong{font-size:13px;display:block;overflow-wrap:anywhere}.file-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.file-row select{font-size:12px;min-height:35px;padding:6px}.file-row img{width:32px;height:32px;object-fit:cover}dialog{border:1px solid var(--line);border-radius:16px;padding:0;max-width:550px;width:calc(100% - 32px);color:var(--text);box-shadow:0 18px 80px #1a332a33}dialog::backdrop{background:#0c292473;backdrop-filter:blur(3px)}.dialog-content{padding:36px;position:relative}.dialog-content h2{margin:12px 0 20px}.dialog-content p{color:var(--muted);margin:18px 0}.dialog-close{position:absolute;right:14px;top:14px}.project-heading{display:flex;justify-content:space-between;gap:35px;margin:28px 0 32px}.project-heading h1{font-size:50px;margin:14px 0}.project-heading p{max-width:800px}.project-actions{display:flex;flex-direction:column;gap:12px;justify-content:center}.author{display:inline-flex;gap:9px;align-items:center;margin-top:22px;font-size:14px;color:var(--green)}.detail-cover{height:500px;width:100%;object-fit:cover;border-radius:14px}.breadcrumb{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.breadcrumb .ph{font-size:12px}.project-meta{display:flex;gap:26px;flex-wrap:wrap;padding:27px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.project-meta span{display:flex;align-items:center;gap:9px}.project-meta .ph{font-size:20px}.detail-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:65px;padding-top:35px}.contents{display:flex;flex-direction:column;gap:16px;font-size:13px;align-self:start;position:sticky;top:30px}.contents a{color:var(--muted)}.detail-body{max-width:850px}.detail-body>section{padding-bottom:40px;margin-bottom:35px;border-bottom:1px solid var(--line);scroll-margin-top:25px}.detail-body>section>h2{margin-bottom:22px}.prose{font-size:17px;line-height:1.8;overflow-wrap:anywhere}.prose p{margin-bottom:17px}.prose h2,.prose h3{margin:25px 0 15px}.prose a{color:var(--green);text-decoration:underline}.prose pre{background:#142e27;color:#e5f5ef;padding:20px;border-radius:7px;white-space:pre-wrap;overflow:auto;font-size:13px}.step-image{width:100%;max-height:500px;object-fit:contain;border-radius:8px;margin-top:20px}.materials-list label{flex-direction:row;gap:12px;align-items:center;padding:13px;background:white;border-bottom:1px solid var(--line)}.materials-list small{display:block;color:var(--muted);margin-top:5px}.materials-list{margin-bottom:25px}.file-list{display:flex;flex-direction:column;gap:12px;font-size:14px;color:var(--green)}.file-list a{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere}.file-list .ph{font-size:20px}.comment{padding:22px 0;border-bottom:1px solid var(--line)}.comment strong{font-size:14px}.comment p{margin:8px 0;color:var(--muted);white-space:pre-wrap}.comment time{font-size:11px;color:var(--muted)}.education-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:55px;align-items:center;padding:10px 0 40px}.education-hero h1{color:var(--green);font-size:58px;margin:18px 0 20px}.education-hero p{font-size:18px;color:var(--muted);max-width:510px}.education-hero .actions{margin-top:25px}.education-hero img{width:100%;height:390px;object-fit:cover;border-radius:14px}.three-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.education-benefits{margin:35px 0 65px}.education-benefits article{padding:25px;border-top:1px solid var(--line)}.education-benefits .ph{font-size:33px;color:var(--green)}.education-benefits h2{font-size:25px;margin:20px 0 13px}.education-benefits p{color:var(--muted)}.class-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:30px}.class-grid h2{font-size:25px}.member{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.member .badge{margin-left:auto}.assignment-brief{margin:30px 0}.assignment-brief h1{color:var(--green);margin:18px 0}.assignment-brief p{white-space:pre-wrap;margin:18px 0;color:var(--muted)}.submission-text{white-space:pre-wrap;line-height:1.7;margin:15px 0}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.product-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.product-card .product-photo{height:290px;object-fit:cover;width:100%;background:var(--mint)}.product-card-copy{padding:23px}.product-card h2{font-size:23px;margin:12px 0}.product-card p{font-size:14px;color:var(--muted);margin-bottom:14px}.product-card .price{font-size:22px;color:var(--green);font-weight:650}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:40px}.product-detail>img{height:520px;object-fit:cover;width:100%;border-radius:14px}.product-detail h1{font-size:42px;color:var(--green);margin:18px 0}.product-detail .price{font-size:28px;color:var(--green);margin:20px 0;font-weight:650}.product-detail form{margin:25px 0}.product-detail .badge{margin-top:18px}.checkout-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:40px}.checkout-summary{align-self:start}.checkout-summary>p{font-size:13px}.inline-form{display:flex;gap:12px;align-items:end;margin-bottom:20px}.inline-form label{flex:1}.cart-item{display:grid;grid-template-columns:1fr 90px 100px 30px;gap:14px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.cart-item h3{font-size:18px}.cart-item p{font-size:12px;color:var(--muted);margin-top:8px}.cart-total{display:flex;justify-content:space-between;padding:12px 0;font-size:15px}.cart-total.grand{font-weight:700;font-size:22px;color:var(--green);border-top:1px solid var(--line);margin-top:10px}.quote-option{display:flex;flex-direction:row;align-items:center;gap:12px;border:1px solid var(--line);background:white;border-radius:8px;padding:17px;margin-bottom:10px}.quote-option small{display:block;color:var(--muted);margin-top:5px}.order-timeline{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.order-timeline>div{background:var(--mint);padding:15px;border-radius:9px;flex:1;min-width:130px}.order-timeline strong{display:block;font-size:13px;color:var(--green);margin-bottom:8px}.order-timeline small{color:var(--muted)}table{width:100%;border-collapse:collapse;font-size:13px;background:white}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:top;max-width:330px;overflow-wrap:anywhere}th{font-weight:600;color:var(--green);white-space:nowrap}.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:9px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.stat{background:white;border:1px solid var(--line);padding:25px;border-radius:10px}.stat strong{display:block;font-size:35px;color:var(--green);margin-bottom:12px}.stat span{color:var(--muted);font-size:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;box-shadow:0 5px 20px #12302522;padding:15px 22px;border-radius:10px;background:var(--dark);color:white;z-index:100;font-size:14px}#toast.error{background:var(--danger)}[hidden]{display:none!important}body[data-page=info] .prose{margin-bottom:35px}
@media(min-width:1500px){.hero{padding-top:35px}.hero-search{margin-top:30px}}
@media(max-width:1370px){.header{margin:0 5%;gap:25px}.main-nav{margin-left:35px;gap:30px}.header-actions{gap:24px}.home-feature,.home-education,.container{margin-left:6%;margin-right:6%}.container.narrow{margin-left:auto;margin-right:auto}.hero h1{font-size:60px}.doodle-left{left:2%;width:145px;top:125px}.doodle-right{right:2%;width:150px;top:35px}.category-strip a{padding:0 22px;gap:12px}.project-card.lead .project-image{height:370px}.horizontal .project-image{height:180px}.section-heading h2{font-size:32px}.horizontal .project-card-copy{padding-top:27px}.horizontal h3{font-size:19px}.hero-search{max-width:720px}}
@media(max-width:1100px){.header{gap:20px}.brand,.brand img{width:130px}.main-nav{margin-left:0;gap:25px}.main-nav a{font-size:15px}.header-actions{gap:20px}.header-actions>.button{padding:12px 18px}.hero h1{font-size:54px}.hero>p{font-size:19px}.hero-doodle{opacity:.85}.doodle-left{width:120px;left:1%;top:140px}.doodle-right{width:120px;right:1%;top:70px}.hero-search{max-width:620px}.category-strip{flex-wrap:wrap;gap:23px 0;margin:35px auto 45px;max-width:800px}.category-strip a{font-size:13px;gap:11px;padding:0 20px}.category-strip a:nth-child(3){border:0}.category-strip a:nth-child(4){padding-left:0}.editorial-grid{grid-template-columns:56% 1fr}.project-card.lead .project-image{height:340px}.project-card.horizontal{grid-template-columns:46% 1fr;gap:13px}.horizontal .project-image{height:165px}.horizontal .project-card-copy{padding-top:20px}.horizontal h3{font-size:17px}.horizontal p{font-size:12px}.project-card.lead .project-card-copy{padding-left:10px}.section-heading h2{font-size:28px}.section-heading>a{font-size:14px}.home-education>div{padding:35px}.home-education h2{font-size:34px}.container.narrow{margin-left:8%;margin-right:8%}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:175px minmax(0,1fr);gap:20px}.editor-form>.panel{padding:25px}.material-row{grid-template-columns:2fr .6fr .6fr 30px}.material-row .material-note{grid-column:1/4}.material-row>.icon-button{grid-column:4;grid-row:1}.auth-layout{margin:30px 5% 65px}.auth-story,.auth-panel{padding:35px}.education-hero h1{font-size:45px}.education-hero img{height:340px}.detail-layout{gap:35px;grid-template-columns:170px minmax(0,1fr)}.detail-cover{height:430px}.checkout-layout{gap:25px}.product-grid{gap:20px}.product-card .product-photo{height:220px}.product-detail{gap:30px}.product-detail>img{height:430px}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){h1{font-size:35px}h2{font-size:27px}.header{height:75px;margin:0 5%;gap:14px}.brand,.brand img{width:117px;height:43px}.header-actions{gap:6px;margin-left:auto}.header-actions>.button{font-size:12px;min-height:40px;padding:10px 12px;border-radius:8px}.main-nav,.login-link{display:none}.account-link{font-size:0;max-width:35px}.account-link span{display:none}.menu-toggle{display:flex}.hero{padding:32px 20px 0}.hero>.eyebrow{font-size:10px;letter-spacing:.25em;margin-bottom:17px}.hero h1{font-size:44px;line-height:1.07;max-width:430px;margin:auto;letter-spacing:-.055em}.hero>p{font-size:16px;margin:18px auto 0;max-width:315px;line-height:1.6;letter-spacing:-.025em}.hero-doodle{display:none}.hero-search{height:58px;margin-top:26px;padding:4px 5px 4px 16px;gap:10px}.hero-search>.ph{font-size:23px}.hero-search input{font-size:13px}.hero-search button{width:82px;height:46px;font-size:13px;padding:8px 12px;border-radius:23px}.category-strip{margin:25px 5% 35px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 0;padding:0}.category-strip a{border:0;flex-direction:column;gap:9px;padding:0;font-size:10px;text-align:center;white-space:normal}.category-strip a .ph{font-size:25px}.home-feature,.home-education,.container{margin-left:5%;margin-right:5%}.section-heading{align-items:flex-end;gap:14px;margin-bottom:20px}.section-heading h2{font-size:27px;max-width:230px;line-height:1.15}.section-heading>a{font-size:12px;gap:5px;white-space:nowrap}.section-heading>a .ph{font-size:18px}.editorial-grid{display:block}.project-card.lead .project-image{height:auto;aspect-ratio:1.6}.project-card.lead .project-card-copy{padding:18px 0 27px}.project-card.lead h3{font-size:26px}.project-card.lead p{font-size:16px}.editorial-side{display:flex;flex-direction:column;gap:20px}.project-card.horizontal{grid-template-columns:42% 1fr;gap:18px}.horizontal .project-image{height:145px}.horizontal .project-card-copy{padding-top:18px}.horizontal h3{font-size:19px}.horizontal p{font-size:13px}.home-education{grid-template-columns:1fr;margin-top:55px}.home-education>div{padding:30px}.home-education h2{font-size:34px}.home-education>.illustrative-media>img{min-height:230px;height:230px}.home-invite{padding:60px 7%}.home-invite h2{font-size:33px}.footer{grid-template-columns:1fr 1fr;padding:40px 6% 25px;gap:30px 20px}.footer>div{grid-column:1/-1}.footer nav{font-size:12px}.footer nav strong{font-size:13px}.footer p{font-size:13px}.environment{line-height:1.7}.container{padding:30px 0 55px;min-height:60vh}.container.narrow{margin:0 5%}.page-intro{display:block;margin-bottom:30px}.page-intro h1{font-size:36px}.page-intro p{font-size:16px}.page-intro>.button{margin-top:20px}.panel{padding:22px}.form-grid{grid-template-columns:1fr}.explore-layout{display:block}.filters{background:white;border:1px solid var(--line);padding:20px;border-radius:9px;margin-bottom:27px}.filters .filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.filters h2{grid-column:1/-1;margin:0;font-size:20px}.filters label{margin-bottom:0;font-size:12px}.filters .button{margin:0}.filters .text-link{align-self:center;justify-content:center}.cards{gap:25px 14px}.cards h3{font-size:18px}.cards .project-card p{font-size:12px}.cards .project-card-copy{padding-top:13px}.cards .project-card small{font-size:11px}.explore-search{gap:7px}.explore-search .button{padding:10px 15px}.search-field input{font-size:13px}.auth-layout{display:block;margin:25px 5% 50px}.auth-story{padding:30px}.auth-story h1{font-size:43px;margin:14px 0}.auth-story h1 br{display:none}.auth-story p{font-size:15px}.auth-story img{display:none}.auth-panel{padding:30px}.auth-tabs{margin-bottom:28px}.auth-panel h2{font-size:25px}.tabs{gap:24px}.tabs button,.tabs a{font-size:13px}.row-card{align-items:flex-start;flex-direction:column;padding:20px}.row-card .actions{flex-wrap:wrap}.editor-shell{padding:12px 5% 40px}.editor-heading{align-items:flex-start;gap:10px;padding-bottom:15px;top:0;margin-bottom:20px}.editor-heading>.text-link{font-size:11px;gap:4px;margin-top:9px}.editor-heading>div{justify-content:flex-end;flex-wrap:wrap;gap:6px;max-width:240px}.editor-heading .button{font-size:11px;padding:9px 11px}.editor-heading #save-status{font-size:10px;flex:1 1 100%;max-width:100%;text-align:right}.editor-heading .ph{font-size:15px}.editor-layout{display:block}.editor-nav{display:none}.editor-form>.panel{padding:22px;scroll-margin-top:110px}.editor-form h1{font-size:31px}.editor-form h2{font-size:25px}.material-row{grid-template-columns:minmax(0,1.4fr) minmax(0,.65fr) minmax(0,.65fr) 25px;gap:6px}.material-row input{font-size:12px!important;padding:10px 6px!important}.material-row label{font-size:10px}.material-row .icon-button{width:25px}.tool-row{flex-wrap:wrap}.tool-row .check-label{font-size:11px}.step-edit{padding:16px}.step-edit h3{font-size:18px}.tiptap{padding:13px;font-size:15px}.rich-toolbar button{font-size:10px}.file-row{grid-template-columns:28px minmax(0,1fr) 27px;gap:8px}.file-row select{grid-column:2;grid-row:2}.file-row>.icon-button{grid-column:3;grid-row:1}.cover-control{flex-wrap:wrap}.cover-control img{width:100%;height:150px}.dialog-content{padding:30px 24px}.project-heading{display:block}.project-heading h1{font-size:37px}.project-heading .large{font-size:17px}.project-actions{flex-direction:row;justify-content:flex-start;margin-top:25px;flex-wrap:wrap}.detail-cover{height:260px;border-radius:10px}.project-meta{gap:15px;font-size:11px}.project-meta .ph{font-size:18px}.detail-layout{display:block;padding-top:25px}.contents{position:static;margin-bottom:24px}.prose{font-size:16px}.detail-body>section{padding-bottom:30px;margin-bottom:28px}.detail-body .section-heading{display:block}.detail-body .section-heading .button{margin-top:18px}.education-hero{display:flex;flex-direction:column;gap:25px;padding:8px 0 20px;align-items:stretch}.education-hero h1{font-size:43px}.education-hero p{font-size:16px}.education-hero img{height:250px}.three-columns{grid-template-columns:1fr;gap:20px}.education-benefits{margin:20px 0 35px}.education-benefits article{padding:22px 0}.education-benefits h2{font-size:25px;margin:13px 0}.class-grid{display:block}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.product-card .product-photo{height:170px}.product-card-copy{padding:16px}.product-card h2{font-size:19px}.product-card p{font-size:12px}.product-card .price{font-size:19px}.product-card .button{font-size:11px;padding:9px 12px}.product-detail{display:block;margin-top:20px}.product-detail>img{height:340px;margin-bottom:25px}.product-detail h1{font-size:35px}.checkout-layout{display:block}.cart-item{grid-template-columns:1fr 65px 30px;gap:10px}.cart-item h3{font-size:16px}.cart-item .price{grid-column:2;grid-row:2;font-size:12px}.cart-item .icon-button{grid-column:3;grid-row:1}.cart-item>div:first-child{grid-row:1/3}.inline-form{flex-wrap:wrap}.inline-form .button{width:100%}.order-timeline{gap:9px}.order-timeline>div{min-width:120px}.stat-grid{gap:12px}.stat{padding:18px}.stat strong{font-size:28px}.stat span{font-size:11px}.upload-button{font-size:12px;padding:12px}.row-card h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Match the approved hero and editorial proportions. */
@media(min-width:1371px){.main-nav{margin-left:45px}.category-strip{margin-bottom:45px}.doodle-left{top:113px}}
.hero-search input[type=search]{border:0;background:transparent;border-radius:0;min-height:0;width:auto;font-size:18px;padding:12px 0;line-height:1.4}.hero-search input[type=search]:focus{outline:none}.editorial-side{align-self:start;grid-template-rows:auto auto}.project-card.horizontal{min-height:193px}
@media(max-width:1100px){.project-card.horizontal{min-height:165px}}
@media(max-width:760px){.hero-search input[type=search]{font-size:13px}.project-card.horizontal{min-height:145px}}
.check-label{display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.5}.check-label input{flex-shrink:0;margin-top:2px}.age-check{font-size:12px;font-weight:400}.submission-text:where(pre){background:#19362e;color:#ecf6f2;padding:20px;border-radius:7px;overflow:auto;white-space:pre-wrap;font-size:13px}fieldset{border:1px solid var(--line);border-radius:8px;padding:18px}legend{font-size:13px;color:var(--green);padding:0 7px}.panel>details{margin-top:18px}
.project-picker-options{display:flex;flex-direction:column;gap:12px;max-height:260px;overflow:auto;padding:15px 4px}.project-picker-options small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.project-picker-options label{font-weight:400}
@media(min-width:1371px){.home-feature>.section-heading h2{font-size:38px}.home-feature>.section-heading{margin-bottom:12px}.category-strip{margin-bottom:44px}}
body[data-page=home] #conteudo{position:relative;overflow:hidden}.edge-decoration{position:absolute;pointer-events:none;object-fit:contain;z-index:0}.edge-ideas{right:-7px;top:253px;width:140px;height:150px}.edge-connect{left:-30px;top:745px;width:150px;height:230px}.edge-hands{right:-20px;top:685px;width:180px;height:270px}.home-feature{position:relative;z-index:1}@media(max-width:1200px){.edge-decoration{display:none}}
.edge-hands{right:4px}

/* Content provenance stays visible without treating future real projects as demos. */
.project-visual,.project-detail-visual,.project-step-visual,.illustrative-media{margin:0;min-width:0}.image-caption{font-size:11px;line-height:1.5;color:var(--muted);padding-top:6px}.project-cover-placeholder{display:flex;height:100%;min-height:130px;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--dark);font-size:12px;text-align:center;padding:18px}.project-cover-placeholder .ph{font-size:34px}.project-demo-badge{margin:1px 0 8px}.project-demo-notice p{margin-top:5px}.project-demo-notice strong{display:block}.illustrative-media{position:relative}.illustrative-media .image-caption{position:absolute;right:12px;bottom:12px;background:white;color:var(--dark);padding:4px 8px;border-radius:4px;border:1px solid var(--line)}.auth-story .illustrative-media{margin-top:35px}.auth-story .illustrative-media img{margin-top:0}.home-education>.illustrative-media>img{height:100%}.project-detail-visual .image-caption{padding-top:8px}
@media(max-width:760px){.auth-story .illustrative-media{display:none}.home-education>.illustrative-media>img{height:230px}.project-cover-placeholder{min-height:100px;font-size:11px}.project-demo-badge{font-size:10px}.image-caption{font-size:10px}}

/* Filters and project contents stay available as compact mobile disclosures. */
.filters>.filters-toggle{display:none}
.filters:not([open])>.filter-fields,.contents details:not([open])>nav{display:none}
.filter-count{font-size:11px;font-weight:500;line-height:1.4;color:var(--dark);background:var(--mint);padding:3px 8px;border-radius:20px;white-space:nowrap}
.active-filters{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-bottom:16px}
.filter-chip{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:20px;background:var(--mint);color:var(--dark);font-size:12px;font-weight:500;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.filter-chip:hover{border-color:var(--green)}
.filter-chip .ph{font-size:14px}
.contents{display:block}
.contents summary{display:flex;align-items:center;gap:10px;font-weight:700;list-style:none;cursor:default}
.contents summary::-webkit-details-marker,.filters-toggle::-webkit-details-marker{display:none}
.contents summary>.ph{display:none}
.contents nav{display:flex;flex-direction:column;gap:16px;margin-top:16px}
@media(max-width:760px){
 .filters{padding:0}
 .filters>.filters-toggle{display:flex;align-items:center;gap:10px;padding:16px;list-style:none;font-weight:600;color:var(--green);cursor:pointer}
 .filters-toggle>.ph{margin-left:auto;font-size:18px}
 .filters[open]>.filters-toggle>.ph,.contents details[open]>summary>.ph{transform:rotate(180deg)}
 .filters .filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:0 16px 16px}
 .filters h2{display:none}
 .contents{display:block;position:static;margin-bottom:24px}
 .contents>details{background:var(--surface);border:1px solid var(--line);border-radius:9px}
 .contents summary{padding:16px;color:var(--green);cursor:pointer}
 .contents summary>.ph{display:block;margin-left:auto;font-size:18px}
 .contents nav{padding:0 16px 16px;margin-top:0}
}
/* Editor authoring: touch targets, mobile sections and safe-area navigation. */
body[data-page="editor"] .header .header-actions > a[href="/criar"] {
  display: none;
}
body[data-page="editor"] .editor-mobile-nav,
body[data-page="editor"] .editor-section-controls {
  display: none;
}
body[data-page="editor"] .editor-shell :is(.editor-layout, .editor-form, .panel, .form-grid, label, .material-row, .tool-row, .step-edit, .file-row, .file-row > div) {
  min-width: 0;
}
body[data-page="editor"] .editor-shell :is(.button, .icon-button) {
  min-height: 44px;
}
body[data-page="editor"] .editor-shell .icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
body[data-page="editor"] .editor-shell :is(#editor-feedback, #editor-error, #upload-status, #conflict-banner) {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
body[data-page="editor"] .editor-upload-state {
  min-width: 0;
}
body[data-page="editor"] #upload-status {
  margin: 0 0 10px;
}
body[data-page="editor"] #upload-progress {
  width: 100%;
  max-width: 100%;
  height: 12px;
  margin: 0 0 20px;
  accent-color: var(--green);
}
body[data-page="editor"] .editor-shell .file-row {
  grid-template-columns: 32px minmax(0, 1fr) minmax(140px, 175px) 44px;
}
body[data-page="editor"] .editor-shell .file-row :is(strong, small) {
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-page="editor"] .editor-shell .step-upload {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}
body[data-page="editor"] .editor-form :is(section, h1, h2) {
  scroll-margin-top: 105px;
}
@media (min-width: 1101px) {
  body[data-page="editor"] .editor-shell .material-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.5fr) 44px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page="editor"] .editor-shell .material-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, .6fr) minmax(0, .6fr) 44px;
  }
}
@media (max-width: 760px) {
  body[data-page="editor"] .editor-shell {
    padding: 12px 16px calc(118px + env(safe-area-inset-bottom, 0px));
  }
  body[data-page="editor"] .editor-heading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 4px 0 12px;
    margin-bottom: 18px;
    top: 0;
    z-index: 25;
  }
  body[data-page="editor"] .editor-heading > .text-link {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    gap: 6px;
  }
  body[data-page="editor"] .editor-heading > div {
    display: contents;
  }
  body[data-page="editor"] .editor-heading #save-status {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
    overflow-wrap: anywhere;
  }
  body[data-page="editor"] .editor-heading .button {
    width: 100%;
    min-height: 48px;
    padding: 11px 10px;
    font-size: 15px;
    white-space: normal;
  }
  body[data-page="editor"] #save-project {
    grid-column: 1;
    grid-row: 2;
  }
  body[data-page="editor"] #review-project {
    grid-column: 2;
    grid-row: 2;
  }
  body[data-page="editor"] .editor-mobile-nav:not([hidden]) {
    display: block;
    position: static;
    padding: 16px;
    margin: 0 0 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  body[data-page="editor"] .editor-mobile-nav label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
  }
  body[data-page="editor"] #editor-section-hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  body[data-page="editor"] .editor-section-controls:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    position: fixed;
    inset: auto 0 0;
    z-index: 35;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 20px #15211f0d;
  }
  body[data-page="editor"] .editor-section-controls .button {
    min-width: 0;
    min-height: 48px;
    padding: 11px 8px;
    font-size: 15px;
    white-space: normal;
  }
  body[data-page="editor"] #editor-section-progress {
    max-width: 76px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: var(--muted);
  }
  body[data-page="editor"] .editor-form > .panel {
    padding: 18px 16px;
  }
  body[data-page="editor"] .editor-form :is(section, h1, h2) {
    scroll-margin-top: 138px;
    scroll-margin-bottom: 118px;
  }
  body[data-page="editor"] .editor-form h1 {
    font-size: 29px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  body[data-page="editor"] .editor-form h2 {
    font-size: 25px;
    line-height: 1.25;
  }
  body[data-page="editor"] .editor-form :is(h1, h2, h3, p, label) {
    overflow-wrap: anywhere;
  }
  body[data-page="editor"] .editor-form > section > p {
    line-height: 1.6;
  }
  body[data-page="editor"] :is(.editor-shell, #publish-dialog) :is(input, textarea, select) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
  }
  body[data-page="editor"] :is(.editor-shell, #publish-dialog) :is(input:not([type="checkbox"]):not([type="radio"]), select) {
    min-height: 48px;
  }
  body[data-page="editor"] .editor-shell textarea {
    min-height: 140px;
  }
  body[data-page="editor"] .editor-form .button,
  body[data-page="editor"] #conflict-banner .button {
    max-width: 100%;
    white-space: normal;
    font-size: 15px;
  }
  body[data-page="editor"] .editor-shell :is(#editor-feedback, #editor-error, #upload-status) {
    font-size: 15px;
  }
  body[data-page="editor"] .editor-shell .material-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 12px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
  }
  body[data-page="editor"] .material-row label {
    font-size: 14px;
    line-height: 1.5;
  }
  body[data-page="editor"] .material-row > label:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  body[data-page="editor"] .material-row > label:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }
  body[data-page="editor"] .material-row > label:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }
  body[data-page="editor"] .material-row > .material-note {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  body[data-page="editor"] .material-row > .icon-button {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    color: var(--danger);
    background: var(--surface);
    border: 1px solid var(--line);
  }
  body[data-page="editor"] .material-row input {
    padding: 12px !important;
  }
  body[data-page="editor"] .tool-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  body[data-page="editor"] .tool-row > .tool-name {
    grid-column: 1 / -1;
    width: 100%;
  }
  body[data-page="editor"] .tool-row > .check-label {
    min-height: 44px;
    font-size: 15px;
    white-space: normal;
  }
  body[data-page="editor"] .tool-row > .icon-button {
    color: var(--danger);
  }
  body[data-page="editor"] .rich-toolbar {
    gap: 4px;
    padding: 6px;
  }
  body[data-page="editor"] .rich-toolbar button {
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px;
    font-size: 16px;
    white-space: normal;
  }
  body[data-page="editor"] .tiptap {
    padding: 14px;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  body[data-page="editor"] .tiptap pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  body[data-page="editor"] .step-edit {
    padding: 16px 12px;
    font-size: 16px;
  }
  body[data-page="editor"] .step-edit header {
    flex-wrap: wrap;
    gap: 12px;
  }
  body[data-page="editor"] .step-edit header .actions {
    gap: 6px;
    margin-left: auto;
  }
  body[data-page="editor"] .editor-shell :is(.step-upload, .upload-button) {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
  }
  body[data-page="editor"] .editor-shell .file-row {
    grid-template-columns: 32px minmax(0, 1fr) 44px;
    gap: 12px 8px;
    padding: 16px 0;
  }
  body[data-page="editor"] .file-row > div {
    overflow: visible;
  }
  body[data-page="editor"] .file-row strong {
    font-size: 14px;
    line-height: 1.5;
  }
  body[data-page="editor"] .file-row small {
    font-size: 12px;
    line-height: 1.5;
  }
  body[data-page="editor"] .file-row > select {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 11px 12px;
  }
  body[data-page="editor"] .file-row > .icon-button {
    grid-column: 3;
    grid-row: 1;
    color: var(--danger);
  }
}
/* Files attached to a step keep their preview, name and removal action compact. */
body[data-page="editor"] .step-assets > .step-asset {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
body[data-page="editor"] .step-asset > img {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}
body[data-page="editor"] .step-asset > a {
  display: block;
  grid-column: 1 / 3;
  grid-row: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-page="editor"] .step-asset > img + a {
  grid-column: 2;
}
body[data-page="editor"] .step-asset > .icon-button {
  grid-column: 3;
  grid-row: 1;
  color: var(--danger);
}
body[data-page="editor"] .upload-failure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 18px;
}
body[data-page="editor"] .upload-failure > p {
  flex-basis: 100%;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body[data-page="editor"] .upload-failure button {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 15px;
  white-space: normal;
}
@media (max-width: 760px) {
  body[data-page="editor"] .upload-failure button {
    flex: 1 1 145px;
  }
}
/* Project reading stays continuous; the mobile controls only guide navigation. */
.project-reader{--reader-offset:32px;overflow-wrap:anywhere}
.project-reader .breadcrumb{flex-wrap:wrap;line-height:1.5}
.project-reader .breadcrumb span{min-width:0}
.project-reader .project-heading>div{min-width:0}
.project-reader .reader-start{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.project-reader .reader-start .button{white-space:normal;text-align:center;min-height:48px}
.project-reader .detail-body{min-width:0}
.project-reader [data-reader-section]{scroll-margin-top:var(--reader-offset)}
.project-reader .detail-body h2{margin:0 0 20px;line-height:1.25}
.project-reader .detail-body h2:focus{outline:none}
.project-reader .detail-body h2:focus-visible{outline:3px solid var(--green);outline-offset:7px;border-radius:3px}
.project-reader .detail-body h3{margin:24px 0 12px}
.project-reader .prose{line-height:1.8}
.project-reader .prose p+p,.project-reader .prose p+ul,.project-reader .prose p+ol{margin-top:16px}
.project-reader .prose h2,.project-reader .prose h3,.project-reader .prose h4{margin-top:28px;margin-bottom:14px}
.project-reader .prose li{padding-left:4px;margin:9px 0}
.project-reader .prose ul,.project-reader .prose ol{padding-left:25px}
.project-reader .prose pre{max-width:100%;overflow:auto;padding:20px;background:#183c36;color:#f0faf6;border-radius:10px;font-size:14px;line-height:1.65;white-space:pre;overflow-wrap:normal;tab-size:2}
.project-reader .prose code{font-size:.9em;background:var(--mint);padding:2px 5px;border-radius:4px}
.project-reader .prose blockquote{margin:20px 0;padding:6px 20px;border-left:3px solid var(--green);color:var(--muted)}
.project-reader .reader-hint{margin-bottom:18px;font-size:15px}
.project-reader .reader-material-count{color:var(--green);font-size:13px;font-weight:600;margin-bottom:14px}
.project-reader .materials-list{display:grid;gap:10px}
.project-reader .materials-list label{min-height:66px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:10px;gap:14px;cursor:pointer;line-height:1.6}
.project-reader .materials-list input{flex:none;width:23px;height:23px;margin:2px 0 0}
.project-reader .materials-list label:has(input:checked){background:var(--mint);border-color:#a4cbbf}
.project-reader .materials-list span{min-width:0}
.project-reader .reader-tools{padding-left:23px;line-height:1.7}
.project-reader .reader-tools li{padding:5px 0}
.project-reader .file-list a{display:flex;align-items:center;gap:12px;min-height:52px;padding:15px 17px;background:white;border:1px solid var(--line);border-radius:10px;line-height:1.5}
.project-reader .file-list a:hover{border-color:var(--green);background:var(--mint)}
.project-reader .file-list a span{min-width:0;overflow-wrap:anywhere}
.project-reader .file-list a small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}
.project-reader .reader-context-file{margin-top:18px}
.project-reader .reader-image-link{display:block;border-radius:10px}
.project-reader .step-image{height:auto}
.project-reader .reader-image-hint{font-size:12px;color:var(--muted);margin-top:8px}
.project-reader .project-step>.eyebrow{display:inline-flex;padding:7px 11px;border-radius:20px;background:var(--mint);margin-bottom:15px}
.project-reader .contents nav a{padding:8px 10px;border-radius:7px;margin-left:-10px;line-height:1.5}
.project-reader .contents nav a[aria-current=location]{color:var(--dark);background:var(--mint);font-weight:650}
.project-reader .contents nav{gap:4px;max-height:calc(100dvh - 140px);overflow:auto;padding:0 8px 8px 10px;margin-left:-10px}
.project-reader .reader-picker[hidden],.project-reader .reader-controls[hidden],.project-reader .reader-controls a[hidden],.project-reader [data-material-count][hidden]{display:none}
.project-reader .reader-controls{display:none}
@media(max-width:760px){
 .project-reader{padding-bottom:110px}
 .project-reader .project-heading h1{font-size:34px;line-height:1.15}
 .project-reader .project-actions{gap:10px}
 .project-reader .project-actions .button{white-space:normal}
 .project-reader .detail-cover{height:auto;max-height:340px;aspect-ratio:4/3;object-fit:cover}
 .project-reader .project-meta{gap:12px 18px;font-size:12px;padding:20px 0}
 .project-reader .reader-start{display:grid;grid-template-columns:1fr;margin:22px 0 10px}
 .project-reader.reader-ready .contents{position:sticky;top:0;z-index:20;background:var(--bg);margin:0 -4px 26px;padding:12px 4px;border-bottom:1px solid var(--line)}
 .project-reader.reader-ready .contents>details{display:none}
 .project-reader .reader-picker label{font-size:11px;font-weight:650;color:var(--green);margin-bottom:7px}
 .project-reader .reader-picker select{min-height:48px;font-size:16px;font-weight:500;padding-right:30px}
 .project-reader .detail-body>section{padding-bottom:30px;margin-bottom:32px}
 .project-reader .detail-body h2{font-size:26px;line-height:1.3}
 .project-reader .prose{font-size:17px;line-height:1.8}
 .project-reader .prose pre{padding:16px;font-size:13px}
 .project-reader .materials-list label{font-size:16px}
 .project-reader .step-image{margin-top:22px;max-height:none}
 .project-reader .reader-controls{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;position:fixed;bottom:0;left:0;right:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));min-height:76px;z-index:25;background:white;border-top:1px solid var(--line);box-shadow:0 -4px 18px #1230250b}
 .project-reader .reader-controls .button{min-height:46px;font-size:14px;padding:11px 14px}
 .project-reader .reader-controls .reader-prev{grid-column:1;padding:10px;width:44px}
 .project-reader .reader-position{grid-column:2;font-size:12px;font-weight:650;line-height:1.5;min-width:0;color:var(--dark)}
 .project-reader [data-reader-next]{grid-column:3}
 .project-reader #comment-form input,.project-reader #comment-form textarea{font-size:16px}
 .project-reader [data-report]{min-height:44px}
}
@media print{
 .project-reader .contents,.project-reader .reader-controls,.project-reader .reader-start,.project-reader .project-actions{display:none!important}
 .project-reader .detail-layout{display:block}
 .project-reader .detail-body>section{break-inside:avoid}
}
@media(max-width:360px){
 body[data-page=project] .header .brand,body[data-page=project] .header .brand img{width:96px}
}

/* Education workspace: scoped to classes and assignments, preserving public reader/editor. */
body[data-page=classes] .page-intro[hidden],.education-workspace [hidden]{display:none!important}
.education-workspace{max-width:1120px}
.education-workspace :is(.panel,.edu-class-layout,.edu-class-layout>div,.edu-class-sidebar,label,form,section,article){min-width:0}
.education-workspace :is(h1,h2,h3,p,strong,dd,.badge,.member span){overflow-wrap:anywhere}
.education-workspace :is(.button,summary){min-height:46px;white-space:normal}
.education-workspace summary{line-height:1.5;scroll-margin-top:24px}
.education-workspace :is(input:not([type=radio]):not([type=checkbox]),select,textarea){font-size:16px;max-width:100%}
.education-workspace :is(h1,h2,h3,[id],.form-message){scroll-margin-top:24px}
.education-workspace .panel{padding:24px}
.education-workspace .panel summary{display:list-item}
.education-workspace .stack{gap:18px}
.education-workspace .fine-print{margin:0;line-height:1.6}
.edu-entry-actions,.edu-class-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 30px}
.edu-setup-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;margin-top:28px}
.edu-class-list>h2,.edu-activities>h2{font-size:25px;color:var(--green);margin:0 0 20px}
.edu-count{display:inline-block;margin-left:6px;font-size:14px;letter-spacing:0;background:var(--mint);border-radius:30px;padding:6px 10px;vertical-align:middle}
.edu-class-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.education-workspace .edu-class-card{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.education-workspace .edu-class-card :is(h3,p){margin:0}
.edu-class-card>.button{margin-top:auto}
.edu-class-header{display:flex;flex-direction:column;align-items:flex-start;gap:15px;margin-bottom:26px}
.edu-class-header h1{color:var(--green);font-size:42px;max-width:900px}
.edu-class-header p{max-width:750px;color:var(--muted)}
.edu-class-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,330px);gap:28px}
.edu-class-actions .text-link{padding:10px 0;min-height:44px}
.edu-class-sidebar .member{gap:14px;align-items:flex-start;padding:14px 0}
.edu-class-sidebar .member .badge{flex-shrink:0}
.edu-class-sidebar .member:first-child{padding-top:0}
.education-workspace .edu-activity-card :is(h3,p){margin:14px 0}
.edu-activity-card>.button{margin-top:4px}
.edu-wizard-progress{padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;border-bottom:1px solid var(--line)}
.edu-wizard-progress li{padding:10px 0 14px;font-size:12px;line-height:1.4;color:var(--muted);border-bottom:3px solid transparent}
.edu-wizard-progress li[aria-current=step]{color:var(--green);font-weight:750;border-bottom-color:var(--green)}
.education-workspace .edu-assignment-builder h3{font-size:24px;margin:0 0 10px}
.edu-search{display:flex;align-items:flex-end;gap:10px;margin:22px 0 14px}
.edu-search label{flex:1;min-width:0}
.edu-search .button{min-width:82px}
.edu-project-options{display:grid;gap:12px}
.edu-project-option{display:flex;flex-direction:row;align-items:flex-start;gap:12px;padding:18px;border:1px solid var(--line);border-radius:10px;cursor:pointer;min-height:64px;background:var(--bg)}
.edu-project-option:has(input:checked){border:2px solid var(--green);padding:17px;background:var(--mint)}
.edu-project-option input{flex-shrink:0;margin:3px 0 0;width:21px;height:21px}
.edu-project-option>span{display:flex;flex-direction:column;gap:10px;min-width:0;flex:1}
.edu-project-option strong{font-size:17px;line-height:1.4}
.edu-project-option .badge{align-self:flex-start}
.edu-project-summary{font-size:14px;color:var(--muted);line-height:1.6}
.edu-project-options[aria-busy=true]{opacity:.7}
.edu-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;font-size:12px;text-align:center}
.edu-pagination .button{font-size:13px;padding:10px 12px}
.edu-selection{padding:18px;background:var(--mint);border-radius:9px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.edu-selection:empty{display:none}
.edu-selection strong{font-size:16px;line-height:1.5}
.edu-selection .text-button{padding:8px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.edu-wizard-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.edu-wizard-actions .button{flex:1;min-width:0;padding:14px 16px}
.edu-wizard-actions .button.primary{flex:1.5}
.edu-review{margin:24px 0;display:grid;gap:22px}
.edu-review div{display:grid;gap:6px}
.edu-review dt{font-size:12px;font-weight:650;color:var(--muted)}
.edu-review dd{margin:0;font-size:16px;line-height:1.65}
.edu-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.edu-invite-row{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border-top:1px solid var(--line);padding:18px 0}
.edu-invite-row:first-child{border-top:0;padding-top:0}
.education-workspace .edu-invite-row p{font-size:12px;margin:8px 0}
.edu-class-settings .button{width:100%}
#edu-confirm{max-width:min(520px,90vw)}
#edu-confirm .actions{flex-wrap:wrap}
#edu-confirm .button{white-space:normal;min-height:48px}
body[data-page=assignment] :is(.assignment-brief,.panel,.submission-text,.file-list){overflow-wrap:anywhere;min-width:0}
body[data-page=assignment] :is(.review-form,#submission-form) :is(input,textarea,select){font-size:16px}
body[data-page=assignment] .review-form>.button{white-space:normal;min-height:48px}
body[data-page=assignment] .assignment-brief>p{white-space:pre-wrap}
@media(max-width:760px){
 .education-workspace{padding-top:28px}
 .education-workspace .page-intro h1,.edu-class-header h1{font-size:34px}
 .edu-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .edu-entry-actions .button{font-size:14px;padding:13px 12px}
 .edu-setup-grid,.edu-class-layout,.edu-class-cards{grid-template-columns:minmax(0,1fr)}
 .edu-class-layout{gap:12px}
 .education-workspace .panel{padding:20px}
 .edu-class-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin-bottom:26px}
 .edu-class-actions>.button{font-size:14px;padding:14px 12px;min-height:52px}
 .edu-class-actions>.text-link{font-size:14px}
 .education-workspace .stack>.button,.edu-class-card>.button,.edu-activity-card>.button{width:100%}
 .edu-class-header{gap:13px}
 .edu-class-header>.text-link{min-height:44px}
 .edu-search{flex-wrap:wrap}
 .edu-search label{flex-basis:100%}
 .edu-search>.button{width:100%}
 .edu-wizard-actions{position:sticky;bottom:0;z-index:2;background:white;padding:14px 0 max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
 .edu-project-option{padding:15px}
 .edu-project-option:has(input:checked){padding:14px}
 .edu-class-sidebar .panel{margin-bottom:16px}
 .education-workspace .panel[open] summary{margin-bottom:22px}
 body[data-page=education] .education-hero .actions{align-items:stretch}
 body[data-page=education] .education-hero .actions>.button{width:100%}
 body[data-page=assignment] .assignment-brief h1{font-size:32px}
 body[data-page=assignment] .panel{padding:20px}
 body[data-page=assignment] :is(.review-form,#submission-form)>.button{width:100%}
}
@media(max-width:360px){
 body:is([data-page=classes],[data-page=assignment],[data-page=education]) .header .brand,body:is([data-page=classes],[data-page=assignment],[data-page=education]) .header .brand img{width:96px}
 .edu-entry-actions,.edu-class-actions{grid-template-columns:minmax(0,1fr)}
 .edu-wizard-progress li{font-size:11px}
 .edu-pagination{flex-wrap:wrap;justify-content:center}
}

/* Student deliveries: readable status, files and feedback on small screens. */
.student-workspace{max-width:860px!important}
.student-workspace :is(section,article,form,fieldset,label,.panel,.sa-file>div){min-width:0}
.student-workspace [hidden]{display:none!important}
.student-workspace :is(h1,h2,h3,p,strong,dd,span,summary,a){overflow-wrap:anywhere}
.student-workspace :is(.panel,.notice){margin-top:0}
.student-workspace :is(h1,h2,h3,[id],summary,.form-message){scroll-margin-top:24px}
.student-workspace :is(.button,summary){min-height:46px;white-space:normal;line-height:1.5}
.student-workspace :is(input,textarea,select){font-size:16px}
.student-workspace .panel{padding:26px}
.student-workspace .panel summary{padding:4px 0}
.student-workspace h2{font-size:25px;color:var(--green)}
.student-workspace .fine-print{line-height:1.6;margin:0}
.sa-brief{margin:25px 0 26px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.sa-brief h1{color:var(--green);font-size:40px}
.sa-brief>p{margin:0!important}
.sa-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:14px}
.sa-lines{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.sa-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 28px}
.sa-shortcuts .text-link{min-height:44px;padding:10px 0}
.sa-late{font-size:14px;line-height:1.6;padding-left:13px;border-left:3px solid #b97422;color:#715020}
.sa-receipt{display:flex;flex-direction:column;gap:8px;border-left:4px solid var(--green);padding:4px 0 4px 18px}
.sa-receipt span{font-size:14px;color:var(--muted)}
.sa-sent-details,.sa-previous,.sa-code,.sa-history-version{border-top:1px solid var(--line);padding:16px 0;margin-top:18px}
.sa-sent-details>summary,.sa-history-version>summary{color:var(--green);font-weight:650;cursor:pointer}
.sa-sent-details[open]>summary,.sa-previous[open]>summary,.sa-history-version[open]>summary{margin-bottom:18px}
.sa-sent-details h3{font-size:18px;margin:20px 0 12px}
.sa-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}
.sa-section-heading h2{margin:0}
.sa-section-heading>.button{font-size:13px;padding:10px 14px;flex-shrink:0}
.sa-review{border-top:1px solid var(--line);padding:22px 0}
.sa-review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;color:var(--green)}
.sa-review-heading .badge{flex-shrink:0}
.sa-review .sa-lines{margin:14px 0}
.sa-review .fine-print{font-size:12px}
.sa-grade{padding:14px;background:var(--mint);border-radius:8px;font-size:16px}
.sa-grade span{font-size:12px;display:block;color:var(--muted);margin-top:6px}
.sa-empty{padding:18px;background:var(--bg);border-radius:8px;line-height:1.6;font-size:15px;margin-top:16px}
.sa-previous>summary{font-size:14px}
.sa-project .panel>summary{line-height:1.6}
.sa-fields{padding:0;margin:0;border:0;display:flex;flex-direction:column;gap:25px}
.sa-files{display:flex;flex-direction:column;gap:15px}
.student-workspace .sa-files>h3{margin:0;font-size:21px}
.student-workspace .sa-upload{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:68px;gap:10px;padding:16px;font-size:16px;cursor:pointer}
.sa-upload input{font-size:13px;max-width:100%}
.sa-upload:focus-within{outline:3px solid var(--green);outline-offset:4px}
.sa-file{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}
.sa-file>div:first-child{display:flex;flex:1;flex-direction:column;gap:8px}
.sa-file strong{font-size:15px;line-height:1.5}
.sa-file .button{padding:9px 12px;font-size:13px}
.sa-file .text-link{font-size:13px;min-height:40px}
.sa-file-actions{display:flex;flex-wrap:wrap;gap:8px}
.sa-file-error{border-left:3px solid var(--danger);padding-left:12px}
.sa-file-error .fine-print{color:var(--danger)}
.sa-library,.sa-extras{border:1px solid var(--line);border-radius:9px;padding:16px}
.sa-library summary,.sa-extras summary{color:var(--green);font-weight:600;cursor:pointer}
.sa-library[open]>summary,.sa-extras[open]>summary{margin-bottom:18px}
.sa-extras summary span{font-weight:400;font-size:13px}
.sa-library-items{max-height:320px;overflow:auto;margin-top:15px}
.sa-library-items .check-label{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.sa-library-items input{flex-shrink:0;margin-top:4px;width:21px;height:21px}
.sa-editor-actions,.sa-review-actions{display:flex;gap:12px;justify-content:space-between;align-items:stretch}
.sa-editor-actions>.button,.sa-review-actions>.button{flex:1;min-width:0}
.sa-editor-actions>.button.secondary{font-size:13px}
.student-workspace .sa-draft-state{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 20px}
.sa-editor .stack{gap:24px}
.sa-summary{display:grid;gap:20px;margin:22px 0}
.sa-summary div{display:grid;gap:8px}
.sa-summary dt{font-size:12px;font-weight:650;color:var(--muted)}
.sa-summary dd{margin:0;font-size:16px;line-height:1.65}
.sa-code pre{background:#19362e;color:#ecf6f2;padding:18px;overflow:auto;max-width:100%;font-size:13px;line-height:1.6;white-space:pre;tab-size:4;border-radius:8px}
.sa-replace-dialog{width:min(560px,90vw);max-height:90vh;overflow:auto}
.sa-replace-dialog .actions{flex-wrap:wrap}
.sa-replace-dialog .button{white-space:normal;min-height:48px}
.sa-history-version .file-list a,.sa-sent-details .file-list a{font-size:14px;line-height:1.5;min-height:44px}
@media(max-width:760px){
 .student-workspace{padding-top:25px}
 .student-workspace .sa-brief h1{font-size:32px}
 .student-workspace .panel{padding:20px}
 .sa-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .sa-shortcuts>.button{font-size:14px;padding:13px 12px;min-height:52px}
 .sa-shortcuts>.text-link{grid-column:1/-1;font-size:14px}
 .sa-section-heading{flex-direction:column;gap:14px}
 .sa-section-heading>.button{width:100%}
 .sa-file{flex-direction:column;gap:10px}
 .sa-file>.button,.sa-file-actions>.button{min-height:44px}
 .sa-file-actions{width:100%}
 .sa-editor-actions,.sa-review-actions{position:sticky;bottom:0;z-index:2;background:white;border-top:1px solid var(--line);padding:14px 0 max(14px,env(safe-area-inset-bottom))}
 .sa-editor-actions{flex-direction:column}
 .sa-review-actions .button{font-size:14px;padding:12px}
 .sa-meta{font-size:13px}
 .sa-project .panel{padding:20px}
 .sa-project .prose pre{max-width:100%;overflow:auto}
}
@media(max-width:360px){.sa-shortcuts{grid-template-columns:minmax(0,1fr)}.sa-review-heading{flex-direction:column}.student-workspace .sa-brief h1{font-size:29px}}

/* Private teacher review: one learner and one explicit submission version at a time. */
.container.narrow.teacher-workspace{max-width:1180px;width:90%;margin-left:auto;margin-right:auto}
.teacher-workspace :is(.tw-layout,.tw-layout>*,.tw-work,.tw-review-fields,.tw-student-card,.tw-summary){min-width:0}
.teacher-workspace :is(h1,h2,h3,p,dd,summary,a,strong,span){overflow-wrap:anywhere}
.teacher-workspace .tw-header{margin-top:24px;margin-bottom:22px}
.teacher-workspace .tw-header h1{font-size:40px;max-width:900px}
.teacher-workspace .tw-header .notice{font-size:14px;margin-bottom:20px}
.tw-lines{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}
.tw-top-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.tw-top-actions .button{min-height:48px}
.tw-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}
.tw-counts>div{border:1px solid var(--line);border-radius:10px;background:white;padding:20px;display:flex;flex-direction:column;gap:8px}
.tw-counts strong{font-size:28px;color:var(--green)}
.tw-counts span{font-size:13px;color:var(--muted);line-height:1.5}
.tw-layout{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.6fr);gap:24px;align-items:start}
.teacher-workspace .tw-list-panel{padding:22px;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}
.teacher-workspace .tw-list-panel h2{font-size:23px;margin-bottom:12px}
.teacher-workspace .tw-list-panel .fine-print{margin:12px 0 20px;font-size:12px;line-height:1.6}
.tw-list-tools{display:flex;flex-direction:column;gap:18px;margin:20px 0}
.teacher-workspace :is(input:not([type=radio]),textarea,select){font-size:16px;max-width:100%;min-height:48px}
.teacher-workspace textarea{resize:vertical;min-height:160px;line-height:1.6}
.tw-student-list{display:flex;flex-direction:column;gap:12px}
.tw-student-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:18px;border:1px solid var(--line);border-radius:10px;background:white;width:100%}
.tw-student-card:hover,.tw-student-card[aria-current=true]{border-color:var(--green);background:#edf7f3}
.tw-student-card[aria-current=true]{box-shadow:inset 3px 0 0 var(--green)}
.tw-student-card strong{font-size:16px;line-height:1.5}
.tw-student-card>span:last-child{font-size:12px;color:var(--muted);line-height:1.6}
.tw-student-card .badge{font-size:11px;white-space:normal;text-align:left}
.tw-detail-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 0;background:var(--bg);position:sticky;top:0;z-index:3}
.tw-detail-nav>div{display:flex;gap:8px;flex-wrap:wrap}
.tw-detail-nav .button{font-size:12px;padding:10px 12px;min-height:44px;white-space:normal}
.teacher-workspace :is([data-review-title],[data-detail-title],[data-review-receipt],[data-detail-message],input,textarea){scroll-margin-top:96px}
.teacher-workspace .tw-work{padding:28px}
.tw-work-heading{padding-bottom:22px;border-bottom:1px solid var(--line)}
.teacher-workspace .tw-work-heading h2{font-size:28px;line-height:1.35;margin:14px 0}
.teacher-workspace .tw-work-heading p{font-size:13px;margin:12px 0}
.tw-work-heading .badge{white-space:normal}
.tw-submission-content{padding:6px 0 18px}
.teacher-workspace .tw-submission-content h3{font-size:21px;margin:22px 0 15px}
.tw-submission-content .file-list{margin-top:20px}
.tw-files a{padding:12px 0;min-height:48px;font-size:14px;border-bottom:1px solid var(--line);line-height:1.6}
.tw-code,.tw-history,.tw-review-history,.tw-history-version,.tw-old-reviews{padding:18px 0;border-top:1px solid var(--line);margin-top:16px}
.tw-code summary,.tw-history summary,.tw-review-history summary,.tw-old-reviews summary,.tw-history-version summary{cursor:pointer;color:var(--green);font-size:14px;font-weight:650;line-height:1.6;min-height:30px}
.tw-code[open]>summary,.tw-history[open]>summary,.tw-review-history[open]>summary,.tw-old-reviews[open]>summary,.tw-history-version[open]>summary{margin-bottom:18px}
.tw-code pre{white-space:pre;overflow:auto;max-width:100%;background:#19362e;color:#ecf6f2;border-radius:8px;font-size:13px;line-height:1.65;padding:18px;tab-size:4}
.tw-code .button{margin-top:16px;min-height:44px;font-size:13px;white-space:normal}
.tw-review{padding:20px 0;border-top:1px solid var(--line)}
.tw-review-heading{display:flex;gap:12px;align-items:start;justify-content:space-between;color:var(--green);font-size:14px;line-height:1.6}
.tw-review-heading .badge{flex-shrink:0}
.teacher-workspace .tw-review .fine-print{margin-top:16px;font-size:12px}
.tw-correction{margin-top:24px;padding-top:4px;border-top:1px solid var(--line)}
.teacher-workspace .tw-correction>h3{font-size:24px;margin:24px 0 15px}
.tw-draft-state{font-size:13px;color:var(--muted);line-height:1.65}
.tw-review-fields{border:0;padding:0;display:flex;flex-direction:column;gap:20px}
.tw-review-fields legend{font-size:16px;padding:0 0 18px;font-weight:650;color:var(--text)}
.tw-review-fields .check-label{min-height:50px;padding:13px 15px;border:1px solid var(--line);border-radius:9px;align-items:center;cursor:pointer;font-size:15px}
.tw-review-fields .check-label:has(input:checked){border-color:var(--green);background:var(--mint)}
.tw-review-fields input[type=radio]{width:20px;height:20px;margin:0;flex-shrink:0;accent-color:var(--green)}
.teacher-workspace .tw-review-fields .fine-print{margin:-10px 0 0;font-size:12px;line-height:1.65}
.tw-review-actions{display:flex;justify-content:space-between;gap:12px;align-items:stretch;margin-top:24px}
.tw-review-actions .button{min-width:0;flex:1;min-height:48px;white-space:normal;line-height:1.5}
.tw-review-actions .button.secondary{font-size:13px}
.tw-summary{display:flex;flex-direction:column;gap:20px;margin:24px 0}
.tw-summary>div{display:flex;flex-direction:column;gap:8px}
.tw-summary dt{font-size:12px;font-weight:650;color:var(--muted)}
.tw-summary dd{font-size:16px;line-height:1.65;margin:0}
.tw-receipt{margin:20px 0}
.tw-receipt strong{line-height:1.6}
.tw-correction .notice .button{margin-top:16px;min-height:48px;white-space:normal}
.tw-project{margin-top:26px}
.tw-project .prose pre{max-width:100%;overflow:auto}
.tw-settings{margin-top:24px;font-size:14px}
.tw-settings .button{min-height:48px;white-space:normal}
.tw-confirm-dialog{width:min(560px,90vw);max-height:90vh;overflow:auto}
.tw-confirm-dialog .button{min-height:48px;white-space:normal;line-height:1.5}
.tw-confirm-dialog .actions{align-items:stretch}
.tw-confirm-dialog .actions>.button{flex:1}
@media(max-width:760px){
 .container.narrow.teacher-workspace{width:90%;padding-top:24px}
 .teacher-workspace .tw-header h1{font-size:31px;line-height:1.2}
 .tw-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tw-counts>div{padding:16px}
 .tw-layout{display:block}
 .teacher-workspace .tw-list-panel{position:static;max-height:none;padding:20px}
 .teacher-workspace:not(.tw-show-detail) .tw-detail-panel{display:none}
 .teacher-workspace.tw-show-detail .tw-list-panel{display:none}
 .teacher-workspace .tw-work{padding:20px}
 .teacher-workspace .tw-work-heading h2{font-size:25px}
 .tw-detail-nav{align-items:stretch;gap:8px}
 .tw-detail-nav>div{flex-wrap:nowrap}
 .tw-detail-nav .button{font-size:12px;padding:10px}
 .tw-top-actions{gap:15px}
 .tw-review-actions{position:sticky;bottom:0;z-index:2;background:white;border-top:1px solid var(--line);padding:14px 0 max(14px,env(safe-area-inset-bottom))}
 .tw-review-actions .button{font-size:14px;padding:12px}
 .tw-review-actions:has([data-export-draft]){flex-direction:column}
 .tw-review-heading{flex-direction:column}
 .tw-project .panel{padding:20px}
 .tw-confirm-dialog .dialog-content{padding:24px}
 .tw-confirm-dialog .actions{flex-direction:column}
}
@media(max-width:360px){.teacher-workspace .tw-header h1{font-size:28px}.tw-detail-nav{flex-direction:column}.tw-detail-nav>div>.button{flex:1}.tw-review-actions .button{font-size:13px}.teacher-workspace :is([data-review-title],[data-detail-title],[data-review-receipt],[data-detail-message],input,textarea){scroll-margin-top:144px}}

/* RC21: acompanhar retornos e consultar turmas arquivadas. */
.notification-center,.notification-card{min-width:0;overflow-wrap:anywhere}
.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.notification-heading h2{margin-bottom:6px}.notification-heading p{margin:0;color:var(--muted)}
.notification-filters,.edu-class-switch{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
:is(.notification-filters,.edu-class-switch) .button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}
.notification-cards{display:grid;gap:16px}.notification-card{margin:0;padding:24px}
.notification-unread{border-left:4px solid var(--green)}
.notification-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--muted);margin-bottom:12px}
.notification-card h3{margin:0 0 10px}.notification-card p{white-space:pre-wrap}
.notification-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.notification-actions .button,.notification-heading .button,.notification-filters .button,.edu-class-switch .button{min-height:44px;white-space:normal}
[data-notification-status]:empty,[data-class-list-message]:empty{display:none}
.notification-center [data-notification-status]{margin:16px 0}
body[data-page=account] [data-account-content]{min-width:0}
body[data-page=account] .tabs{max-width:100%;scroll-padding-inline:12px}
@media(max-width:600px){
 .notification-heading{align-items:flex-start;gap:12px}.notification-heading h2{font-size:26px}
 .notification-card{padding:20px}.notification-actions{flex-direction:column}.notification-actions .button{width:100%}
 .notification-filters .button,.edu-class-switch .button{flex:1;min-width:0}
 body[data-page=account] .tabs{gap:22px}
}
@media(max-width:360px){
 body[data-page=account] .header .brand,body[data-page=account] .header .brand img{width:96px}
 .notification-heading{flex-direction:column}
}
/* Keep the inbox refresh label intact when its heading shares a row on phones. */
.notification-heading>div{min-width:0}
.notification-heading>.button{flex:0 0 auto;white-space:nowrap}
