@font-face{font-family:StudioArabic;src:local('Segoe UI')}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#20343f;background:#f7f7f3;font:15px StudioArabic,'Tahoma',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a7792b;outline-offset:3px}[hidden]{display:none!important}.topbar{height:88px;background:#fff;border-bottom:1px solid #e8e9e3;padding:0 40px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px}.brand strong{font-size:28px;font-weight:600}.brand-symbol{width:60px;height:60px;display:grid;place-items:center;background:#203b49;color:#e5c88e;font-size:42px;border-radius:17px}.brand-symbol.small{width:43px;height:43px;font-size:32px;border-radius:12px}.brand-en{direction:ltr;font-size:9px;letter-spacing:2px;margin-right:8px;border-right:1px solid #ddd;padding-right:16px;color:#738087}.top-actions{display:flex;align-items:center;gap:24px}.private-label{font-size:12px;color:#576c72}.private-label i{display:inline-block;width:6px;height:6px;background:#728e75;border-radius:50%;margin-left:5px}.text-button{background:none;border:0;color:#60747c;font-size:12px}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:calc(100vh - 88px)}aside{background:#fff;border-left:1px solid #e8e9e3;padding:40px 24px;position:relative}.side-title{font-size:11px;color:#8a9598;margin:0 14px 20px}.nav-item{display:flex;align-items:center;gap:12px;padding:14px;border-radius:9px;margin-bottom:7px;font-size:13px;color:#75858b}.nav-item span{font-size:20px}.nav-item.active{background:#eff2ed;color:#284735;font-weight:600}.side-note{margin-top:94px;padding:23px 16px;background:#f5f3eb;border:1px solid #eae5d8;border-radius:12px;overflow:hidden;height:245px;position:relative}.side-note>span{font-size:21px;line-height:1.6}.side-note p{font-size:11px;line-height:1.8;color:#79817c}.side-orbit{position:absolute;width:125px;height:125px;border:1px solid #ccbc9a;border-radius:50%;bottom:-55px;left:-25px}.side-orbit:after{content:'';position:absolute;inset:14px;border:1px solid #ccbc9a;border-radius:50%}.version{display:block;color:#98a3a6;font-size:10px;margin-top:85px;text-align:center}.workspace{padding:43px 48px 0;max-width:1500px;width:100%;margin:auto}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font:9px/1.5 Arial,sans-serif;letter-spacing:2px;color:#8c947d;display:block;direction:ltr;text-align:right}h1{font-size:33px;letter-spacing:-.6px;font-weight:550;margin:12px 0}h2{font-size:19px;margin:0;font-weight:550}h3{font-weight:500}.welcome p{font-size:13px;color:#829097;margin:10px 0}.welcome-mark{font-size:72px;color:#b7a27b;font-weight:200;line-height:1}.notice{display:flex;align-items:center;gap:14px;background:#efeee4;border:1px solid #e2dfce;padding:15px 19px;border-radius:10px;margin-bottom:27px;font-size:12px;color:#77643c}.notice>span:first-child{font-size:23px}.notice strong{font-weight:500}.notice p{margin:4px 0 0;color:#8a7c5d;font-size:11px}.badge{margin-right:auto;border:1px solid #d9d1b9;border-radius:20px;font-size:10px;padding:4px 10px;white-space:nowrap}.design-grid{display:grid;grid-template-columns:minmax(300px,.92fr) minmax(320px,1.08fr);gap:24px;scroll-margin-top:20px}.card{background:white;border:1px solid #e4e7e1;border-radius:14px;overflow:hidden}.editor{padding:25px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.muted{color:#87949a;font-size:11px}.field-heading{display:flex;justify-content:space-between;align-items:center;margin:22px 0 9px;gap:10px}.field-heading small{font:9px Arial,sans-serif;color:#939c9d;direction:ltr}.inline-button{background:none;border:0;color:#7e8c67;font-size:11px;padding:5px 0}.editor label,dialog label{font-size:12px}.editor form>label:not(.field-heading):not(.upload-zone){display:block;margin:20px 0 8px}select,input:not([type=file]),textarea{width:100%;border:1px solid #e0e5df;background:#fcfdfb;border-radius:7px;padding:12px;color:#354d58;min-width:0}select{font-size:12px;min-height:44px}textarea{resize:vertical;line-height:1.7;font-size:12px}input::placeholder,textarea::placeholder{color:#a2abaa}.upload-zone{height:166px;border:1px dashed #cfd8cd;background:#fafbf8;border-radius:10px;display:grid;place-items:center;position:relative;overflow:hidden;cursor:pointer}.upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}.upload-zone:focus-within{outline:3px solid #a7792b}.upload-zone img{width:100%;height:100%;object-fit:contain;position:absolute}.upload-zone span{text-align:center;color:#84948c}.upload-zone b{display:block;font-size:28px;margin-bottom:6px;font-weight:normal}.upload-zone strong{display:block;font-size:12px;font-weight:500;color:#5c7168}.upload-zone small{display:block;font-size:10px;margin-top:7px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.two-fields select{margin-top:9px}.optional{font-size:10px;color:#9ca5a2;margin-right:5px}.primary{border:0;border-radius:8px;background:#244535;color:#fff;min-height:47px;padding:12px 18px;font-size:13px;width:100%;display:flex;align-items:center;justify-content:center;gap:14px}.primary:hover{background:#315b46}.generate{margin-top:20px;justify-content:flex-start}.generate span:first-child{font-size:21px}.generate span:last-child{margin-right:auto}.helper{text-align:center;color:#9ba49e;font-size:10px;margin:12px 0 0}.reference-row{display:flex;gap:6px;margin-top:9px}.reference-row img{width:38px;height:38px;object-fit:cover;border:1px solid #ddd;border-radius:6px}.preview{padding:25px;display:flex;flex-direction:column}.preview .section-heading{margin-bottom:20px}.preview #result-area{background:#f4f5f1;border:1px solid #eceee8;border-radius:9px;min-height:510px;flex:1;display:grid;align-items:center;position:relative;overflow:hidden}.empty-preview{text-align:center;padding:30px 10px;color:#94a09a}.preview-icon{font-size:60px;color:#aebbaf;display:grid;place-items:center;width:100px;height:100px;margin:0 auto 25px;border:1px solid #dce3d7;border-radius:24px;transform:rotate(-8deg)}.empty-preview h3{font-size:18px;color:#738579;margin-bottom:12px}.empty-preview p{font-size:12px;line-height:1.9}.empty-preview>span{font:8px Arial,sans-serif;letter-spacing:2px;color:#a5aea3;display:block;margin-top:36px}.preview-footer{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#97a196;padding-top:18px}.history{margin-top:42px;scroll-margin-top:24px}.history .eyebrow{margin-bottom:8px}.history-empty{border:1px dashed #d9dfd4;padding:27px;text-align:center;color:#9aa59a;border-radius:10px;font-size:12px}.history-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.job-card{padding:13px;background:white;border:1px solid #e1e6dd;border-radius:10px;min-width:0}.job-card img{width:100%;height:160px;object-fit:contain;border-radius:6px;background:#f4f5ef}.job-card h3{font-size:13px;margin:12px 0 7px}.job-card small{font-size:10px;color:#87958c}.job-card .status{display:inline-block;margin:8px 0}.status{font-size:11px;color:#526e53;background:#eef3e9;padding:5px 9px;border-radius:20px}.status.failed{background:#f9eee9;color:#a04f3e}.result-content{padding:16px;align-self:start;width:100%}.result-content>img{width:100%;max-height:480px;object-fit:contain;border-radius:7px}.result-content h3{font-size:17px;margin:12px 0}.mock-label{font-size:11px;color:#8b6b29;background:#fbf4dd;padding:10px;border-radius:6px;line-height:1.7}.result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.result-actions button,.result-actions a{background:#fff;border:1px solid #d7e0d0;border-radius:6px;padding:10px;font-size:11px;min-height:40px}.result-actions button.approve{background:#244535;color:#fff;border-color:#244535}.result-actions button.reject{color:#9c5345}.history .result-actions{gap:5px}.history .result-actions button,.history .result-actions a{font-size:10px;padding:7px}.footer{border-top:1px solid #e1e4dc;margin-top:38px;display:flex;justify-content:space-between;gap:10px;padding:22px 0;color:#9aa299;font-size:10px}.footer span:last-child{font:8px Arial,sans-serif;letter-spacing:1.8px}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-card{align-self:center;justify-self:center;max-width:370px;width:calc(100% - 48px);padding:50px 0}.login-card .eyebrow{margin-top:28px}.login-card h1{font-size:31px}.login-card>p{color:#84918b;font-size:13px;line-height:1.9}.login-card form{margin:35px 0}.login-card label{font-size:12px}.login-card input{margin:10px 0 18px}.login-card>small{font-size:11px;color:#9ca49a}.login-art{background:#203b49;position:relative;overflow:hidden;display:flex;justify-content:center;flex-direction:column;padding:80px;color:#e6d9b9}.login-art>span{font-size:65px;line-height:1.7;z-index:1}.login-art>small{font:9px Arial;letter-spacing:3px;margin-top:35px;z-index:1}.art-disc{position:absolute;width:480px;height:480px;border-radius:50%;border:1px solid #657569;left:-160px;top:15%}.art-disc:after{content:'';position:absolute;inset:40px;border:1px solid #657569;border-radius:50%}dialog{border:1px solid #dce3d5;border-radius:14px;padding:28px;width:440px;max-width:calc(100% - 30px);box-shadow:0 25px 80px #142e3733;color:#20343f}dialog::backdrop{background:#132d3880;backdrop-filter:blur(3px)}dialog label{display:block;margin:20px 0 10px}dialog input,dialog textarea{margin-top:9px}dialog input[type=file]{max-width:100%;font-size:12px}dialog .primary{margin-top:25px}.close-button{border:0;background:none;font-size:24px;color:#819084;min-width:36px;min-height:36px}#toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:20;padding:14px 20px;border-radius:10px;background:#203b49;color:#fff;box-shadow:0 8px 30px #172c3825;max-width:90vw;font-size:13px}#login-error{color:#a54c3f;font-size:12px}.waiting{text-align:center;padding:40px 20px}.spinner{width:35px;height:35px;border:2px solid #dce3d5;border-top-color:#587850;border-radius:50%;margin:0 auto 20px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.spinner{animation:none}}
@media(min-width:1600px){.workspace{padding-top:55px}.preview #result-area{min-height:580px}}@media(max-width:1150px){.workspace{padding:32px 26px 0}.shell{grid-template-columns:170px minmax(0,1fr)}aside{padding:35px 14px}.design-grid{gap:16px;grid-template-columns:1fr 1fr}.editor,.preview{padding:20px}.preview-footer span:last-child{display:none}.history-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.shell{display:block}aside{display:none}.workspace{padding:30px 24px 0}.topbar{padding:0 24px;height:76px}.design-grid{grid-template-columns:1fr 1fr}.brand-en{display:none}.welcome-mark{font-size:56px}h1{font-size:28px}.private-label{display:none}}@media(max-width:680px){.workspace{padding:27px 16px 0}.topbar{padding:0 16px}.design-grid{grid-template-columns:1fr}.welcome{margin-bottom:23px}.welcome p{font-size:11px;max-width:270px;line-height:1.8}h1{font-size:25px}.welcome-mark{font-size:38px}.eyebrow{font-size:8px;letter-spacing:1.4px}.notice{padding:13px;gap:9px}.notice p{font-size:10px;line-height:1.7}.notice .badge{font-size:9px}.editor,.preview{padding:21px}.preview #result-area{min-height:350px}.history-items{grid-template-columns:1fr}.footer{font-size:9px}.footer span:last-child{display:none}.login-wrap{grid-template-columns:1fr}.login-art{display:none}.login-card{max-width:340px}.login-card .brand-symbol{margin-top:10vh}.field-heading small{font-size:8px}.history .job-card{display:grid;grid-template-columns:105px 1fr;gap:12px}.history .job-card img{height:105px;grid-row:1/5}.history .job-card h3{margin:0}.history .job-card .result-actions{grid-column:1/-1}.result-content>img{max-height:440px}}

.inline-button{color:#244535;font-size:12px;font-weight:600;padding:8px 10px;border:1px solid #d9e2d3;border-radius:6px;background:#f3f6ef;min-height:36px}.ideas-panel{border:1px solid #e0e6da;border-radius:9px;padding:0 12px 12px;margin-top:18px}.ideas-panel .field-heading{margin-top:12px}.ideas-list{max-height:230px;overflow:auto;margin-top:12px}.idea-card{border-top:1px solid #e4e8e0;padding:8px 0}.idea-card summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:12px;overflow-wrap:anywhere}.idea-card img{width:45px;height:45px;object-fit:cover;border-radius:5px}.idea-card small{display:block;color:#697e71;margin-top:5px}.idea-card p,.creative-note p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.creative-note{margin-top:15px;background:#edf2e8;padding:10px;border-radius:8px;font-size:12px}.creative-note summary{cursor:pointer}.story-choice{display:flex!important;align-items:center;gap:8px;line-height:1.8}.story-choice input[type=checkbox]{width:18px;min-width:18px;height:18px;accent-color:#244535}.ideas-panel .helper{text-align:right}#ideas-progress{font-size:12px;color:#244535}#ideas-dialog small{font-size:11px;line-height:1.8;display:block}#ideas-dialog input[type=file],#template-dialog input[type=file]{border:1px dashed #aebda5;padding:14px;border-radius:7px;width:100%}#ideas-dialog input::file-selector-button,#template-dialog input::file-selector-button{background:#244535;color:white;border:0;border-radius:5px;padding:8px;cursor:pointer}
