/* Exact desktop values from Figma 17:2 and header 48:989.
   Design width 1920px. Responsive rules adapt the same composition below 900px. */
@font-face{font-family:Inter;src:url('../../assets/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{font-family:Inter,Arial,sans-serif;color:#333;background:#f9f9f9;--blue:#0050cf;--line:#ddd}
body{position:relative;isolation:isolate;overflow-x:clip;min-height:1080px}
.header{width:802px;max-width:calc(100% - 40px);height:80px;margin:36px auto 0;padding:8px 28px;gap:64px;border:0;border-radius:80px;overflow:hidden}
body[data-view=home] .header{width:800px;gap:0}
.brand{display:block;flex:0 0 238px;width:238px;height:64px}
.brand img{display:block;width:238px;height:64px;max-width:none;object-fit:contain}
.header nav{gap:12px;flex:none}
.header .nav-link{padding:12px;min-height:50px;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:24px;font-weight:500;border-radius:0;color:#333}
.header .nav-link.active{color:#0050cf}
.header .nav-link.active:after{height:1px;bottom:0}
.header .btn{padding:12px 24px;border-radius:12px;min-height:50px;font-size:20px;line-height:24px;font-weight:600;background:#0050cf}
body[data-view=home] .header .nav-link{padding:12px 24px}
body[data-view=home] .header .btn{font-weight:500}
.school-scene{position:absolute;inset:450px 0 auto;height:max(630px,calc(100% - 450px));background-image:url('../../assets/classroom-background.png');background-size:1920px 630px;background-position:center top;background-repeat:repeat-y;mask-image:none;opacity:1;z-index:-1}
body[data-view=home] .school-scene{background-image:url('../../assets/home-school-background.png')}
.home{padding:64px 20px 65px;min-height:964px}
.hero-content{width:804px;max-width:100%;margin:auto;display:flex;flex-direction:column;align-items:center;gap:22px}
.home h1{max-width:604px;font-size:64px;line-height:70px;letter-spacing:-2.56px;font-weight:600;color:#333;margin:0}
.home .subtitle{max-width:none;font-size:20px;line-height:24px;color:#333;margin:0;font-weight:400}
.home .hero-cta{font-size:20px;line-height:24px;font-weight:500;min-height:50px;padding:12px 24px;border-radius:64px;background:#0050cf}
.landing-form-stack{width:653px;max-width:calc(100% - 28px);position:relative;margin:55px auto 0;isolation:isolate}
.home .quick-form{position:relative;transform:rotate(3deg);transform-origin:center;display:flex;flex-direction:column;gap:16px;width:653px;max-width:100%;min-height:444px;margin:0;padding:24px;border:1px solid #ddd;border-radius:20px;box-shadow:none;background:#fff;text-align:left}
.form-back{position:absolute;inset:0;z-index:-1;transform:rotate(-3.11deg) translateY(5px);background:white;border:1px solid #ddd;border-radius:20px}
.form-back:after{content:'';position:absolute;bottom:24px;left:24px;right:24px;height:43px;background:rgba(0,80,207,.6);border-radius:12px}
.home .quick-form .field{margin:0;gap:8px;min-width:0}
.home .quick-form .row{gap:16px}
.home .quick-form label{font-size:16px;line-height:19px;font-weight:500;color:#333}
.home .quick-form input,.home .quick-form select{font-family:Inter,Arial,sans-serif;font-size:16px;line-height:19px;color:#808080;min-height:44px;height:44px;border:1px solid #ddd;border-radius:12px;padding:12px;min-width:0;background-color:#fff}
.home .quick-form input::placeholder{color:#808080;opacity:1}
.home .quick-form select{padding-right:35px;background-image:url('../../assets/chevron-down.png');background-size:19px 19px;background-position:right 12px center;background-repeat:no-repeat}
.home .quick-form .btn{height:43px;min-height:43px;padding:12px;font-size:16px;line-height:19px;font-weight:500;background:rgba(0,80,207,.6);border-radius:12px}
.home .quick-form .btn:hover{background:#0050cf}
.landing-input-row{display:flex;align-items:center;gap:8px;min-width:0}
.landing-input-row input{flex:1;width:0}
.add-goal{padding:0;width:24px;height:24px;flex:0 0 24px;display:flex;align-items:center;justify-content:center;border-radius:4px}
.add-goal img{display:block;width:24px;height:24px;object-fit:contain}
.home .demo-link{margin-top:43px;font-size:13px;color:#757575}
.btn{background:#0050cf}
.field select{background-image:url('../../assets/chevron-down.png');background-size:19px 19px}
@media(max-width:900px){
 body{min-height:100vh}
 .header{max-width:calc(100% - 32px);gap:18px;padding:8px 20px}
 .header .nav-link{font-size:16px;padding:12px 8px}
 .header .btn{font-size:16px;padding:12px 18px}
 .header .brand{flex-basis:210px;width:210px;height:57px}
 .header .brand img{width:210px;height:57px}
 .home{padding-top:60px;min-height:900px}
 .home h1{font-size:56px;line-height:62px;letter-spacing:-2px}
 .home .subtitle{font-size:17px;line-height:24px;max-width:610px}
 .school-scene{inset:415px 0 auto;height:max(650px,calc(100% - 415px));background-size:1600px 525px}
 .landing-form-stack{margin-top:55px}
}
@media(max-width:640px){
 .header,body[data-view=home] .header{width:calc(100% - 28px);max-width:none;margin-top:18px;height:64px;padding:8px 14px;gap:12px;border-radius:50px;overflow:visible}
 .header .brand{width:149px;height:40px;flex-basis:149px}
 .header .brand img{width:149px;height:40px}
 .header nav{gap:5px}
 .header .nav-link,body[data-view=home] .header .nav-link{font-size:13px;line-height:18px;padding:8px;min-height:38px}
 .header .btn,body[data-view=home] .header .btn{font-size:13px;line-height:18px;padding:10px 12px;min-height:38px;border-radius:10px}
 body:not([data-view=home]) .header .brand{width:125px;flex-basis:125px;height:34px}
 body:not([data-view=home]) .header .brand img{width:125px;height:34px}
 body:not([data-view=home]) .header{gap:4px;padding:8px 11px}
 body:not([data-view=home]) .header .nav-link{font-size:11px;padding:8px 5px}
 body:not([data-view=home]) .header .btn{font-size:11px;padding:10px 8px}
 .home{padding:50px 18px 50px;min-height:900px}
 .hero-content{gap:20px}
 .home h1{font-size:36px;line-height:41px;letter-spacing:-1.44px}
 .home .subtitle{font-size:14px;line-height:21px;max-width:360px}
 .home .subtitle br{display:none}
 .home .hero-cta{font-size:16px;line-height:20px;min-height:44px;padding:11px 20px}
 .landing-form-stack{width:100%;max-width:calc(100% - 12px);margin-top:48px}
 .home .quick-form{padding:20px 16px;gap:16px;min-height:420px;border-radius:16px;transform:rotate(2deg)}
 .form-back{border-radius:16px;transform:rotate(-2.5deg)}
 .home .quick-form .row{gap:8px}
 .home .quick-form .field label{font-size:14px;line-height:18px}
 .home .quick-form input,.home .quick-form select{font-size:14px;padding:11px 9px}
 .home .quick-form select{padding-right:25px;background-size:15px 15px;background-position:right 7px center}
 .home .quick-form .btn{font-size:14px}
 .school-scene{inset:370px 0 auto;height:max(650px,calc(100% - 370px));background-size:1500px 492px;background-repeat:repeat-y}
}
@media(max-width:374px){.header .brand{width:125px;flex-basis:125px;height:34px}.header .brand img{width:125px;height:34px}.header .nav-link,body[data-view=home] .header .nav-link{font-size:12px;padding:8px 5px}.header .btn,body[data-view=home] .header .btn{font-size:12px;padding:9px 10px}.home h1{font-size:32px;line-height:37px}}
.home .quick-form .required{color:inherit;margin-left:-3px}

/* Application screens from Figma, inspected 2026-11-23. */
.design-icon{display:inline-block;object-fit:contain;flex:none;vertical-align:middle}
.page{max-width:none;padding:50px 24px 70px}
.panel{border:0;border-radius:20px;box-shadow:none}
.btn{border-radius:12px;font-size:16px;font-weight:600;line-height:19px;min-height:50px}
.field label{font-size:16px;line-height:19px;color:#333;font-weight:500}
.field input,.field select,.field textarea{font-family:Inter,Arial,sans-serif;font-size:16px;line-height:19px;color:#808080;border-color:#ddd;border-radius:12px;padding:12px;min-height:45px}
.field input::placeholder,.field textarea::placeholder{color:#808080;opacity:1}
.profile-page{max-width:848px;margin:auto}
.profile-panel{max-width:none;width:800px;max-width:100%;padding:32px;display:flex;flex-direction:column;gap:20px}
.profile-panel .avatar{width:100px;height:100px;background:#f0f0f0;margin:0;padding:18px}
.design-profile-form{display:flex;flex-direction:column;gap:16px;width:100%}
.design-profile-form .field{margin:0;gap:12px;min-height:76px}
.design-profile-form label{font-size:18px;line-height:22px}
.design-profile-form .field:first-child label{color:#808080}
.design-profile-form input,.design-profile-form select{border:0;border-bottom:1px solid #ddd;border-radius:0;height:44px;min-height:44px}
.design-profile-form select{background-position:left 12px center;padding-left:47px}
.design-profile-form .required{display:none}
.design-profile-form>.btn{margin-top:4px;align-self:flex-start;padding:12px 24px}
.password-toggle{top:9px;right:12px;width:19px;height:19px;padding:0;color:#808080}
.workspace-tools{max-width:1180px;margin:24px auto 0;color:#808080;font-size:14px;line-height:22px}
.workspace-tools>summary{cursor:pointer;padding:10px 4px;list-style-position:inside}
.workspace-tools[open]>.panel{margin-top:12px;border:1px solid #ddd;padding:24px}
.workspace-tools .classes-heading{margin-top:0;padding-top:0;border:0}
.workspace-tools select{border:1px solid #ddd;border-radius:8px;padding:8px;color:#333;background:white}
.workspace-tools .inline-actions{flex-wrap:wrap}
.generator-page{max-width:1228px;margin:auto}
.generator-panel{width:1180px;max-width:100%;padding:20px;border:1px solid #ddd;border-radius:40px;display:flex;flex-direction:column;gap:24px}
.generator-panel>h2{font-size:24px;line-height:29px;font-weight:700;letter-spacing:0}
.generator{grid-template-columns:510px minmax(0,1fr);gap:10px;min-height:700px}
.generator .settings{padding:24px;border:0;border-radius:20px;display:flex;flex-direction:column;gap:16px;min-width:0;min-height:700px}
.generator .settings.result-settings{border:1px solid #ddd}
.generator .field{margin:0;gap:8px;min-width:0}
.generator .field input,.generator .field select,.generator .field textarea{border:0;border-bottom:1px solid #ddd;border-radius:0;min-height:45px;height:45px;background-color:white}
.generator .row{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.generator .required{color:inherit;margin-left:-3px}
.generator #generate-button{min-height:43px;height:43px;padding:12px;background:#0050cf99}
.generator #generate-button:hover{background:#0050cf}
.generator #lesson-goals{display:flex;flex-direction:column;gap:8px}
.generator .preview-area{border:1px dashed #ddd;border-radius:20px;height:700px;padding:20px;overflow:auto;min-width:0;scrollbar-color:#c1c1c1 #f1f1f1;scrollbar-width:auto}
.empty-preview{min-height:100%;gap:12px;color:#808080}
.empty-preview .document-symbol{width:80px;height:80px;border:2px dashed #ddd;border-radius:64px;display:flex;align-items:center;justify-content:center}
.empty-preview p{font-size:16px;line-height:19px;font-weight:700;max-width:none}
.generation-spinner{width:80px;height:80px;border:6px solid #80a7e7;border-top-color:#0050cf;border-radius:50%;animation:spin 1s linear infinite}
.generator .document{font-family:'Times New Roman',serif;font-size:12px;box-shadow:none;border:0;padding:8px 20px;line-height:1.1}
.generator .document table th,.generator .document table td{font-family:inherit;font-size:11px;line-height:1.1;padding:4px;border-color:#333;background:white;color:black}
.generator .document h2{font-family:inherit;font-size:14px;text-align:left;margin:0 0 4px}
.generator .document h3{font-family:inherit;font-size:12px;margin:8px 0 4px}
.generator .doc-label{font-size:10px;line-height:14px;color:#808080;margin-bottom:8px}
.generator .source-block{font-family:Inter,Arial,sans-serif;line-height:1.5}
.result-settings textarea{height:120px!important;resize:vertical;line-height:19px!important}
.result-settings .btn{width:100%}
.result-settings .btn.secondary{border-color:#0050cf}
.result-settings .btn.dark{background:#333}
.result-settings .or-divider{display:flex;align-items:center;gap:8px;color:#808080;font-size:14px}
.or-divider:before,.or-divider:after{content:'';height:1px;background:#ddd;flex:1}
.result-settings .export-actions{margin:0;gap:8px;display:flex}
.wallet-page{width:1063px;max-width:100%;margin:auto}
.wallet-page .plans-grid{grid-template-columns:549px minmax(0,1fr);gap:16px;margin-bottom:16px}
.trial-card,.payment-method{padding:20px;min-height:192px}
.trial-card{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.trial-top{display:flex;align-items:center;gap:16px}
.trial-top>div:first-child{flex:1;min-width:0}
.trial-top h2,.payment-method h2{font-size:20px;font-weight:600;line-height:24px;letter-spacing:0;margin-bottom:4px}
.trial-top p,.payment-method p,.tariff-row p{font-size:16px;line-height:19px;color:#808080}
.trial-price,.tariff-price{display:flex;align-items:center;gap:4px;white-space:nowrap}
.trial-price b{font-size:32px;font-weight:600;line-height:39px;color:#303030}
.trial-price span,.tariff-price span{font-size:16px;font-weight:500;line-height:19px;color:#808080}
.trial-usage{font-size:16px;line-height:19px;font-weight:500}
.usage-track{height:5px;background:#80a7e7;border-radius:8px;margin-top:-4px;overflow:hidden}
.usage-track span{display:block;height:100%;background:#0050cf}
.upgrade-link{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:#0050cf;padding:0;font-size:16px;font-weight:500}
.payment-method{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.card-icon{width:53px;height:53px;border:2px dashed #ddd;border-radius:64px;display:flex;align-items:center;justify-content:center}
.card-button{border:1px solid #808080;border-radius:12px;color:#808080;font-size:14px;line-height:17px;font-weight:600;padding:8px 12px;display:flex;gap:12px;align-items:center}
.wallet-page .tariff-list{padding:20px;min-height:422px}
.tariff-row{padding:16px 0;border-bottom:1px solid #ddd;display:grid;grid-template-columns:minmax(0,1fr) auto 160px;gap:16px;align-items:center;min-height:78px}
.tariff-row:first-child{padding-top:0;min-height:82px}
.tariff-row:last-child{padding-bottom:0;border:0;min-height:62px}
.tariff-row strong{display:block;font-size:20px;line-height:24px;font-weight:600;margin-bottom:4px}
.tariff-price b{font-size:24px;line-height:29px;font-weight:600;color:#303030}
.tariff-row .btn{width:160px;padding:8px 12px;min-height:33px;height:33px;font-size:14px;font-weight:600;border-radius:12px}
.modal-backdrop{background:rgba(0,0,0,.2);padding:24px}
.modal{width:653px;max-width:100%;padding:24px;border:1px solid #ddd;border-radius:20px;box-shadow:none;max-height:calc(100dvh - 48px);scrollbar-width:thin}
.modal h2{font-size:24px;font-weight:500;line-height:29px;letter-spacing:0;margin-bottom:12px;padding-right:36px}
.modal .close{width:29px;height:29px;right:24px;top:24px;padding:0;color:#333;font-size:0}
.modal .close img{width:29px;height:29px}
.modal form{display:flex;flex-direction:column;gap:16px}
.modal .field{gap:12px;margin:0}
.modal form>.field+.field{margin-top:-4px}
.profile-panel{min-height:790px}
.design-profile-form .field{height:76px;flex:none}
.design-profile-form .field label{flex:none}
.design-profile-form .field input,.design-profile-form .field select{flex:none}
.modal .field label{line-height:19px;font-size:16px;font-weight:500}
.modal .field .required{display:none}
.modal .btn.full{height:50px;min-height:50px;background:#0050cf99;padding:12px;font-size:16px;font-weight:600}
.modal .btn.full:hover{background:#0050cf}
.modal .password-toggle{top:13px;right:12px}
.modal .check{gap:16px;font-size:16px;line-height:19px;margin:0!important;color:#808080;align-items:center}
.modal .check input{width:20px;height:20px;margin:0;flex:none;accent-color:#0050cf}
.modal .forgot-link{display:flex;align-items:center;gap:16px;min-height:20px;margin:0}
.modal .forgot-link:before{content:'';display:block;width:20px;height:20px;border:1px solid #808080;border-radius:4px;flex:none}
.modal .forgot-link .text-button{color:#808080;font-size:16px;text-decoration:underline;line-height:19px}
.modal-foot{margin:0;color:#808080;font-size:14px;line-height:17px;text-align:center}
.modal-foot .text-button{font-size:14px;font-weight:700;text-decoration:underline}
.modal-desc{margin:0 0 12px;color:#333;font-size:16px;line-height:19px}
.modal .back-link{color:#808080;font-size:16px;line-height:19px;text-decoration:underline;padding:0;align-self:flex-start}
.modal .modal-navigation{display:flex;justify-content:space-between;gap:16px}
.modal .global-error{margin:0;padding:0;border:0;background:none;font-size:14px;line-height:19px;color:#e24f4f}
.field.invalid input{border-color:#ef7777}
.modal[data-kind=login]{min-height:390px}
.modal[data-kind=register]{min-height:672px}
.modal[data-kind=reset]{min-height:301px}
.modal[data-kind=new-password]{min-height:362px}
.modal.payment-modal{width:552px;padding:20px;border-radius:40px}
.payment-modal h2{font-size:20px;font-weight:700;line-height:24px;margin-bottom:24px}
.modal.payment-modal .close{top:24px;right:20px;width:24px;height:24px}
.payment-modal .close img{width:24px;height:24px}
.modal.payment-modal form{gap:24px}
.checkout-plan{display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid #0050cf;border-radius:20px;min-height:92px}
.checkout-plan>div:first-child{flex:1;min-width:0}
.checkout-plan h3{font-size:20px;font-weight:600;line-height:24px;margin-bottom:4px}
.checkout-plan p{font-size:16px;line-height:19px;color:#808080}
.checkout-plan .text-button{font-size:14px;font-weight:500;margin-top:8px}
.payment-modal .field input{border:0;border-bottom:1px solid #ddd;border-radius:0;opacity:1;color:#808080;background:white}
.payment-modal .row.two{gap:16px}
.modal.payment-modal .btn.full{background:#0050cf}
.checkout-note{font-size:12px;line-height:17px;color:#808080}
.global-error:empty{display:none}
@media(max-width:1250px){.generator{grid-template-columns:minmax(350px,.83fr) minmax(0,1fr)}.wallet-page .plans-grid{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr)}}
@media(max-width:900px){.wallet-page .plans-grid{grid-template-columns:1fr 1fr}.trial-top{gap:10px}.trial-price b{font-size:26px}.tariff-row{grid-template-columns:minmax(0,1fr) auto 120px}.tariff-row .btn{width:120px}.tariff-price{gap:2px}.tariff-price span{font-size:13px}.tariff-price b{font-size:20px}}
@media(max-width:760px){
 .page{padding:32px 16px 50px}.generator-panel{padding:20px 16px;border-radius:24px}.generator-panel>h2{font-size:20px;line-height:26px}
 .generator{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0}.generator .settings{min-height:0;padding:16px 8px}.generator .preview-area{height:600px}.generator .empty-preview{min-height:558px}
 .profile-panel{padding:24px}.profile-panel .avatar{width:80px;height:80px;padding:14px}.avatar .design-icon{width:52px;height:52px}.design-profile-form label{font-size:16px}.design-profile-form .field{min-height:72px}
 .wallet-page .plans-grid{grid-template-columns:1fr}.trial-top>div:first-child{max-width:325px}.trial-top{justify-content:space-between}.trial-top p,.payment-method p,.tariff-row p{font-size:14px;line-height:19px}
 .tariff-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 0}.tariff-row .btn{grid-column:2;grid-row:auto;align-self:end}.tariff-row>div:first-child{grid-row:span 2}.tariff-price{justify-content:flex-end}.tariff-row strong{font-size:18px;line-height:22px}.tariff-price b{font-size:22px}
 .modal-backdrop{padding:16px}.modal{padding:24px;max-height:calc(100dvh - 32px)}.modal h2{font-size:22px}.modal.payment-modal{border-radius:24px}.checkout-plan{gap:12px;padding:12px}.checkout-plan h3{font-size:18px}
 .workspace-tools[open]>.panel{padding:20px}.workspace-tools .classes-heading{gap:10px}.workspace-tools .inline-actions{gap:12px}
}
@media(max-width:400px){.modal{padding:20px}.modal h2{font-size:20px}.modal .close{right:16px;top:20px}.trial-top{align-items:start}.trial-price{flex-wrap:wrap;justify-content:flex-end}.trial-price b{font-size:24px}.trial-price span{font-size:13px}.generator .row{gap:8px}.generator .field select{padding-left:8px;padding-right:25px;font-size:14px}.checkout-plan .tariff-price{flex-wrap:wrap}.checkout-plan .tariff-price b{font-size:20px}}

/* Mobile application screens: keep controls readable and let content wrap.
   Desktop Figma geometry is unchanged. */
.generator-panel>h2,.page-title h1,.class-item strong,.source-block p,.checkout-plan h3{overflow-wrap:anywhere}
.page,.panel,.generator,.editor-grid>*{min-width:0}
@media(max-width:760px){
 .header:has(a[href="#profile"]){width:calc(100% - 32px);max-width:none;height:auto;min-height:76px;margin:18px auto 0;padding:12px 16px;gap:8px;border-radius:24px;flex-wrap:wrap;overflow:visible}
 .header:has(a[href="#profile"]) .brand{width:160px;height:43px;flex-basis:160px}
 .header:has(a[href="#profile"]) .brand img{width:160px;height:43px}
 .header nav:has(a[href="#profile"]){width:100%;gap:8px;justify-content:space-between}
 .header nav:has(a[href="#profile"]) .nav-link,.header nav:has(a[href="#profile"]) .btn{font-size:14px;line-height:20px;min-height:44px;padding:10px 8px}
 .page{padding:24px 16px 40px}
 .generator-panel{padding:20px 16px;gap:16px;border-radius:24px}
 .generator-panel>h2{font-size:22px;line-height:28px}
 .generator .settings{padding:8px 0 16px;gap:20px}
 .generator .field input,.generator .field select,.generator .field textarea,.modal .field input,.modal .field select,.modal .field textarea,.design-profile-form input,.design-profile-form select,#editor-form input,#editor-form textarea,.workspace-tools select{font-size:16px;line-height:22px;min-height:48px}
 .generator #lesson-goals>input{font-size:16px;line-height:22px;min-height:48px}
 .generator .field select{padding:12px 38px 12px 12px;background-position:right 12px center;background-size:19px 19px}
 .generator #generate-button,.result-settings .btn{height:auto;min-height:48px;white-space:normal;line-height:22px;padding:12px 16px}
 .generator .preview-area{height:clamp(300px,60svh,600px);padding:16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .generator .empty-preview{min-height:100%;gap:16px}
 .empty-preview p{font-size:16px;line-height:24px}
 .generator .document{min-width:540px;padding:8px;font-size:14px;line-height:1.3}
 .generator .document table th,.generator .document table td{font-size:13px;line-height:1.3;padding:6px}
 .generator .source-block{font-size:14px;line-height:22px;overflow-wrap:anywhere}
 .generator .doc-label{gap:12px;font-size:12px;line-height:18px}
 .profile-panel{min-height:0;padding:24px 20px}
 .design-profile-form{gap:20px}
 .design-profile-form .field{height:auto;min-height:0;gap:8px}
 .design-profile-form .field input,.design-profile-form .field select{height:48px}
 .design-profile-form .password-toggle{top:2px;right:2px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
 .design-profile-form>.btn{width:100%;min-height:48px;margin-top:4px}
 .workspace-tools{margin-top:16px;font-size:14px;line-height:22px}
 .workspace-tools>summary{padding:12px 0;min-height:44px;overflow-wrap:anywhere}
 .workspace-tools[open]>.panel{padding:20px 16px}
 .workspace-tools .classes-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .workspace-tools .text-button{display:inline-flex;align-items:center;min-height:44px}
 .workspace-tools .balance-header{flex-wrap:wrap;align-items:center}
 .wallet-page .tabs{gap:16px;flex-wrap:wrap}
 .wallet-page .tabs button{min-height:44px;font-size:14px}
 #wallet-history{max-width:100%;overflow-x:auto;overscroll-behavior:contain}
 .payment-table td{overflow-wrap:anywhere}
 .editor-toolbar{gap:12px}
 .editor-toolbar .text-button{min-height:44px;display:inline-flex;align-items:center}
 .editor-toolbar .save-status{flex-basis:100%;font-size:14px;line-height:22px}
 .editor .panel{padding:20px 16px}
 .editor .edit-stage{padding:16px 12px}
 .editor .version-list{grid-template-columns:minmax(0,1fr)}
 .version-item{font-size:14px;overflow-wrap:anywhere}
 .version-item button{min-height:44px;font-size:14px}
 .modal-backdrop{padding:16px;align-items:center}
 .modal{padding:24px 20px;max-height:calc(100dvh - 32px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .modal h2{padding-right:40px;overflow-wrap:anywhere}
 .modal .close,.modal.payment-modal .close{top:14px;right:12px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
 .modal .close img,.modal.payment-modal .close img{width:24px;height:24px}
 .modal .modal-navigation{flex-wrap:wrap;gap:8px}
 .modal .back-link,.modal-foot .text-button{min-height:44px;display:inline-flex;align-items:center}
 .modal .check{align-items:flex-start;line-height:22px}
 .modal .check input{margin-top:2px}
 .modal .password-toggle{top:2px;right:2px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
 .modal .btn.full{height:auto;min-height:48px;line-height:22px;white-space:normal}
 .modal-desc{line-height:24px}
 .checkout-plan{min-width:0}
 .toast{bottom:max(16px,env(safe-area-inset-bottom));line-height:22px}
}
@media(max-width:520px){
 .generator .generator-choice-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
 .generator-choice-row>.field:first-child{grid-column:1/-1}
 .generator .row.two{grid-template-columns:minmax(0,1fr)}
 .wallet-page .trial-top{flex-direction:column;align-items:flex-start;gap:16px}
 .trial-price{justify-content:flex-start;flex-wrap:wrap}
 .wallet-page .tariff-row{grid-template-columns:minmax(0,1fr) auto;gap:16px 12px;padding:20px 0}
 .wallet-page .tariff-row>div:first-child{grid-column:1/-1;grid-row:auto}
 .wallet-page .tariff-price{grid-column:1;justify-content:flex-start;flex-wrap:wrap;white-space:normal}
 .wallet-page .tariff-row .btn{grid-column:2;width:auto;min-width:112px;min-height:44px;height:auto;white-space:normal}
 .tariff-row p,.trial-top p,.payment-method p{font-size:16px;line-height:24px}
 .upgrade-link{min-height:44px;font-size:16px;line-height:22px;flex-wrap:wrap}
 .payment-modal .checkout-plan{flex-direction:column;align-items:stretch}
 .checkout-plan>div:last-child{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
 .checkout-plan .text-button{min-height:44px;margin-top:0}
 .payment-modal .row.two{grid-template-columns:minmax(0,1fr)}
 .modal[data-kind=login],.modal[data-kind=register],.modal[data-kind=reset],.modal[data-kind=new-password]{min-height:0}
}

.job-progress{width:80px;height:80px;border-radius:50%;background:conic-gradient(#0050cf var(--job-progress),#80a7e7 0);display:grid;place-items:center;padding:6px;color:#0050cf;flex:none}
.job-progress span{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;background:white;font-size:20px;font-weight:600}
