/* V4.4: mobile studio */
@font-face{font-family:Tajawal;src:url('fonts/Tajawal.ttf') format('truetype');font-display:swap}
:root{--bg:#f6f5f9;--paper:#fff;--ink:#212639;--muted:#8990a2;--line:#ebeaf1;--blue:#7960d7;--violet:#7960d7;--shadow:0 5px 22px rgba(26,25,56,.035)}
html,body{font-family:Tajawal,Arial,sans-serif;background:#f6f5f9}
body{padding:12px;background-image:none;overflow-x:hidden}
button,input,select{font-family:inherit}
.lux-bg{display:none}
.app-shell{max-width:680px}
.uc-studio-bar{position:sticky;top:0;z-index:70;min-height:58px;padding:8px 0;margin:0;background:#f6f5f9;gap:10px}
.uc-studio-bar button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border-radius:13px;font-size:13px;background:#fff;border:1px solid #eae8f1;white-space:nowrap}
.uc-studio-bar svg{width:18px;height:18px}
.uc-studio-bar #saveProjectBtn{background:#252b43;color:#fff;border-color:#252b43}
.uc-studio-bar strong{font-size:15px;font-weight:700}
.topbar.ultra-header{padding:14px 16px;border-radius:18px;margin:6px 0 12px;box-shadow:none;gap:8px}
.topbar:after{display:none}
.brand-wrap{gap:11px;min-width:0}
.brand-logo-shell{height:46px;width:46px;padding:3px;border-radius:13px;box-shadow:none}
.brand-logo-shell img{border-radius:9px}
.brand-copy h1{font-size:23px;letter-spacing:-.3px}
.brand-copy h1 span{color:#252b43}
.brand-copy p,.brand-copy .eyebrow,.header-status{display:none}
.uc-step-tabs{position:sticky;top:58px;z-index:65;background:#f6f5f9;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px 0 12px;margin:0}
.uc-step-tabs button{border:1px solid transparent;border-radius:13px;background:transparent;color:#9296a8;padding:10px 3px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px}
.uc-step-tabs svg{height:20px;width:20px}
.uc-step-tabs button.selected{background:#fff;border-color:#e9e6f1;color:#6b51ce;box-shadow:0 3px 9px rgba(47,37,84,.03)}
.uc-step-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 4px 16px;gap:12px}
.uc-step-heading h2{font-size:21px;line-height:1.3;margin:0 0 7px;font-weight:800}
.uc-step-heading p{font-size:12px;line-height:1.6;margin:0;color:#9095a5}
.uc-step-heading>span{font-size:12px;direction:ltr;border:1px solid #e8e5ee;border-radius:12px;padding:8px 11px;color:#8e83af}
.workspace{display:block}
.uc-step-page{display:flex;flex-direction:column;gap:12px;min-width:0}
.panel,.mode-panel{box-shadow:var(--shadow);border:1px solid #edebf3;background:#fff;border-radius:20px}
.control-section{background:#fff;border:1px solid #edebf3;border-radius:20px;padding:18px;margin:0;overflow:hidden}
.control-section .section-head{margin-bottom:16px}
.section-head b{height:30px;min-width:30px;width:30px;border-radius:10px;font-size:12px;background:#f1edfc;color:#8069c6;border-color:#f1edfc}
.section-head h2{font-size:16px;line-height:1.4}
.section-head small{font-size:11px;color:#969bac}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid{gap:12px}
label>span{font-size:12px;color:#747c92;line-height:1.5;margin-bottom:7px}
input:is([type=number],[data-uc-number="true"]),input[type=text],select{height:46px;border:1px solid #e7e5ee;border-radius:12px;background:#faf9fc;padding:9px 10px;color:#29314a;font-size:14px;max-width:100%;min-width:0;box-shadow:none}
input:is([type=number],[data-uc-number="true"]){direction:ltr;text-align:center}
input[type=color]{height:46px;border:1px solid #e7e5ee;border-radius:12px;background:#faf9fc;padding:5px;width:100%}
.mode-panel{padding:12px;margin:0;display:block}
.mode-copy{display:none}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.mode-btn{padding:13px 9px;border-radius:14px;border:1px solid #eeecf4;min-width:0;background:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:right}
.mode-btn .mode-icon{display:none}
.mode-btn strong{font-size:14px}
.mode-btn small{font-size:11px;color:#9498a8}
.mode-btn.active{background:#f4f0ff;border-color:#cfc3f2;box-shadow:none}
.upload-box{background:#faf9fd;border:1.5px dashed #d8d1ec;border-radius:16px;min-height:130px;padding:18px}
.upload-box .upload-icon{font-size:27px;background:#f1edfb;color:#8974c8;border-radius:12px}
.upload-box strong{font-size:15px}
.upload-box span{font-size:12px}
.file-chip{border-radius:10px;background:#f7f5fb;border-color:#f0edf5;padding:8px 10px;font-size:11px}
.field-editor{background:#fcfbfe;border-color:#eae6f1;border-radius:16px;padding:13px}
.field-title strong{font-size:14px}
.feature-note{background:#faf8fd;border-color:#efebf5;color:#8b82a0;font-size:11px;line-height:1.8}
.template-grid{grid-template-columns:1fr 1fr}
.template-grid label{grid-column:1/-1}
.mini-action,.secondary,.tiny{border-radius:12px;min-height:42px}
.card-designer-panel,.preview-panel{padding:16px;min-height:0;border-radius:20px}
.panel-head h2{font-size:15px}
.panel-head p{font-size:11px}
.designer-stage{height:280px;padding:22px;border-radius:15px;background:#f2f1f6;border-color:#eeecf3}
.designer-stage:before{opacity:.4}
.designer-card{box-shadow:0 9px 24px rgba(25,22,45,.14)}
.designer-empty{width:100%;height:100%;font-size:13px}
.designer-size{font-size:11px}
.image-mode-hint{font-size:11px}
.live-dot{background:#edf8f3;border-color:#deeee5;font-size:10px}
.extra-field-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;border-color:#edeaf4}
.extra-field-row .check-row{grid-column:1/-1}
.extra-field-row input{min-width:0;width:100%}
.extra-fields-legend{display:none}
.stats-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;box-shadow:none;padding:10px;gap:8px}
.stats-row>div{background:#faf9fc!important;border-color:#f1eef5!important;padding:12px;border-radius:13px}
.stats-row span{font-size:11px}
.stats-row strong{font-size:14px}
.preview-wrap{height:min(62vh,580px);min-height:350px;padding:12px;border-radius:14px;background:#f1eff5;border-color:#e8e5ee}
.preview-head{align-items:flex-start}
.page-nav button{width:34px;height:34px;min-height:34px;border-radius:10px}
.page-nav{gap:4px}
.page-nav span{min-width:38px;font-size:11px}
.uc-single-preview{padding:16px;border:1px solid #edebf3;border-radius:18px;background:white;align-items:end}
.uc-single-preview button{height:46px;color:#6e55bc;background:#f1edfa;border:0}
.uc-step-dock{position:sticky;bottom:0;z-index:60;display:flex;align-items:center;gap:12px;background:rgba(246,245,249,.97);border-top:1px solid #ece9f2;padding:14px 0 6px;margin-top:18px}
.uc-step-dock button{border:1px solid #e6e2ee;border-radius:14px;min-height:48px;padding:11px 20px;background:white;color:#8d83a0;font-size:14px;font-weight:700}
.uc-step-dock #ucNextStep,.uc-step-dock #downloadPdf{flex:1;background:#252b43;color:#fff;border:0;display:flex;align-items:center;justify-content:center;gap:8px}
.uc-step-dock svg{width:18px;height:18px}
.uc-step-dock button:disabled{opacity:.4}
#resetBtn{border:0;background:transparent;color:#a693a6;font-size:12px;min-height:42px}
footer{font-size:10px;padding:20px 6px;color:#a7a4b2}
.uc-home{padding:12px 4px 28px;max-width:680px}
.uc-welcome{position:relative;text-align:right;background:#252b43;background-image:radial-gradient(circle at 0 0,rgba(192,159,245,.23),transparent 65%);border-radius:25px;padding:25px 22px;color:white;margin:10px 0 20px;min-height:200px}
.uc-welcome img{float:left;height:60px;width:60px;object-fit:cover;border-radius:16px;margin:0 0 12px 12px}
.uc-welcome>span{display:block;padding-top:7px;font-size:11px;letter-spacing:.3px;color:#cbc0e6}
.uc-welcome h1{clear:both;font-size:25px;line-height:1.5;padding-top:4px;margin:8px 0;font-weight:700}
.uc-welcome p{font-size:12px;color:#bebbd0;line-height:1.8;margin:0}
.uc-actions{gap:12px}
.uc-actions button{position:relative;min-height:128px;border-radius:20px;padding:17px;border-color:#edebf2;background:#fff;box-shadow:0 4px 18px rgba(33,28,55,.025)}
.uc-actions i{display:flex;align-items:center;justify-content:center;height:35px;width:35px;border-radius:11px;background:#f3effb;color:#8b71c1;margin-bottom:14px}
.uc-actions svg{width:19px;height:19px}
.uc-actions strong{font-size:16px;font-weight:700}
.uc-actions small{font-size:11px;color:#a19aa9;line-height:1.6;margin-top:6px}
.uc-actions .uc-primary{background:#8871bd;border-color:#8871bd}
.uc-actions .uc-primary i{background:rgba(255,255,255,.15);color:#fff}
.uc-actions .uc-primary small{color:#e1d7f2}
.uc-section-title{padding:12px 4px 0}
.uc-section-title h2{font-size:19px}
.uc-section-title span{background:#efeaf6;color:#8e7cae;border-radius:10px;font-size:12px}
.uc-project{border-color:#ebe8f1;border-radius:16px;padding:13px;background:#fff}
.uc-project strong{font-size:14px}
.uc-project small{font-size:10px}
.uc-project button{border-radius:10px;font-size:12px;background:#f3eff9;color:#947bba}
.uc-project img{width:50px;height:44px}
.uc-dialog{font-family:Tajawal,Arial,sans-serif;border-radius:24px;border-color:#eeebf5;background:#fff}
.uc-dialog button{font-family:inherit}
@media(min-width:700px){body{padding:20px}.app-shell,.uc-home{max-width:720px}.designer-stage{height:380px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}}


.uc-step-page>.control-section,.uc-step-page>.panel{background:#fff;border:1px solid #ece9f2;border-radius:20px}.uc-collapsible{background:#fff;border:1px solid #ece9f2;border-radius:18px;overflow:hidden}.uc-collapsible>summary{cursor:pointer;padding:17px 18px;color:#817195;font-size:13px;font-weight:700}.uc-collapsible>.control-section{background:#fff;border:0;border-top:1px solid #f0edf5;box-shadow:none;border-radius:0}.uc-collapsible .field-editor{background:#faf9fc;border-color:#eae5f2}.uc-step-page .field-editor{background:#fcfbfd;border-color:#ece7f4}.uc-step-page .feature-note{background:#faf8fc;border-color:#f0ebf6}footer{display:none}
