@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto+Slab:wght@600;700&display=swap');
:root{font-family:Manrope,'Segoe UI',sans-serif;color:#172238;background:#0c1423}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}[hidden]{display:none!important}.studio{display:flex;min-height:100vh}.controls{width:300px;min-width:300px;height:100vh;position:sticky;top:0;background:#f7f9fc;border-right:1px solid #cbd3df;display:flex;flex-direction:column;z-index:2}.brand-head{height:84px;min-height:84px;padding:14px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #d5dce5}.brand-logo{width:80px;height:38px;object-fit:contain;background:#11263b;border-radius:4px}.brand-head h1{font-size:14px;line-height:1.1;margin:0 0 4px;font-weight:800;letter-spacing:-.4px;color:#10223a}.brand-head p{font-size:8px;line-height:1.45;color:#697789;margin:0}.controls-scroll{overflow:auto;padding:13px 16px 24px;scrollbar-width:thin;scrollbar-color:#bac5d2 transparent}.control-section{border-bottom:1px solid #d8dfe8;padding:0 0 16px;margin:0 0 16px}.control-section:last-child{border:0}.control-section h2{font-size:9px;letter-spacing:1.25px;color:#1d2d42;font-weight:800;margin:0 0 11px}.section-heading{display:flex;align-items:center;justify-content:space-between}.reset-button{border:1px solid #cfd8e3;background:#fff;color:#36475d;width:20px;height:20px;border-radius:4px;font-size:13px;line-height:1;padding:0;margin:-6px 0 7px}.reset-button:hover{background:#e7edf4}.control-section label:not(.upload-tile){display:block;font-size:9px;font-weight:800;color:#26374f;margin:10px 0 5px}.field-count{float:right;font-weight:600;color:#9aa5b2}.control-section textarea,.control-section input:not([type=file]):not([type=color]),.control-section select{display:block;width:100%;border:1px solid #bdc9d8;background:white;color:#172b46;border-radius:3px;outline:none;padding:8px 9px;font-size:10px;font-weight:700;min-height:30px}.control-section textarea{resize:vertical;line-height:1.45;min-height:56px}.control-section textarea:focus,.control-section input:focus,.control-section select:focus{border-color:#6a879f;box-shadow:0 0 0 2px #c8d8e6}.control-section input::placeholder,.control-section textarea::placeholder{color:#9aabc0;font-weight:500}.upload-tile{display:flex;align-items:center;gap:9px;border:1px dashed #91a5bc;background:#fff;border-radius:3px;padding:8px;margin:6px 0;min-height:51px;cursor:pointer;color:#1e3554}.upload-tile:hover{border-color:#4c6883;background:#f8fbff}.upload-icon{display:grid;place-items:center;flex:none;width:33px;height:32px;border:1px solid #d0d9e3;background:#f7f9fc;font-size:15px;color:#1a304c}.logo-icon{background:#11263b;color:white;font-style:italic;font-size:21px;font-weight:800}.upload-tile span:nth-child(2){min-width:0;flex:1}.upload-tile strong{display:block;font-size:10px;white-space:nowrap}.upload-tile small{display:block;font-size:8px;color:#8494a8;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:2px}.upload-plus{font-size:14px;color:#8ca0b3}.remove-media{display:block;border:0;background:none;color:#9b1722;font-size:8px;font-weight:800;padding:1px 0 3px}.micro-label{font-size:8px;color:#a63237;font-weight:800;letter-spacing:1px;margin:8px 0 6px}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.template-grid button{background:#fff;color:#40536a;border:1px solid #bfcbda;border-radius:3px;min-height:28px;font-size:9px;font-weight:800}.template-grid button.active{border-color:#233b59;background:#203650;color:#fff}.template-grid .align-button{font-size:8px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}.two-fields select{padding:6px 5px!important;font-size:8px!important}.color-fields input[type=color]{width:100%;height:31px;border:1px solid #bdc9d8;background:#fff;padding:3px;border-radius:3px;cursor:pointer}.export-section{margin-bottom:0}.export-button{width:100%;height:34px;margin:5px 0;border:1px solid #c6d1dc;border-radius:4px;background:#fff;color:#1e324d;display:flex;align-items:center;gap:10px;padding:0 9px;font-size:9px;font-weight:800;text-align:left}.export-button span{font-size:8px;color:#9a1520;width:32px}.export-button b{margin-left:auto;font-size:13px}.export-button.primary{background:#a71920;border-color:#a71920;color:#fff}.export-button.primary span{color:#fff}.export-button:hover{filter:brightness(.95)}.export-button:disabled{opacity:.55;cursor:wait}.export-note{font-size:8px;line-height:1.5;color:#8d9bae;margin:9px 0 0}.preview-area{min-width:0;flex:1;display:flex;flex-direction:column;background:radial-gradient(circle at 98% 4%,#31202e 0,transparent 33%),radial-gradient(circle at 92% 95%,#1c2b42 0,transparent 32%),#0c1423}.preview-topbar{min-height:42px;border-bottom:1px solid #2c3542;display:flex;justify-content:space-between;align-items:center;padding:0 18px;color:#c5cfdd;background:#171c28}.preview-topbar>div{display:flex;align-items:center;gap:12px}.preview-topbar span:first-child{color:#d14d52;font-size:8px;font-weight:800;letter-spacing:1px}.preview-topbar strong{font-size:9px;letter-spacing:.4px}.saved-status{color:#72c39a!important;border:1px solid #2a7459;border-radius:20px;padding:3px 9px;font-size:8px!important;letter-spacing:0!important;display:flex;align-items:center;gap:5px}.saved-status i{height:5px;width:5px;border-radius:50%;background:#66b98d}.preview-stage{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;padding:20px 28px}.canvas-frame{border:1px solid #40516d;background:#101827;padding:5px;width:fit-content;max-width:100%;box-shadow:0 25px 65px #0006}.frame-meta{height:15px;display:flex;justify-content:space-between;align-items:start;color:#afb7c2;font-size:6px;letter-spacing:1.4px;font-weight:800}.canvas-frame canvas{display:block;width:auto;height:auto;max-width:min(850px,calc(100vw - 365px));max-height:calc(100vh - 115px);aspect-ratio:1;box-shadow:0 0 0 1px #09101f}.canvas-frame.wide canvas{max-width:min(1120px,calc(100vw - 365px))}.preview-footer{color:#647184;font-size:8px;padding:0 20px 12px;display:flex;justify-content:space-between}.toast{position:fixed;right:20px;bottom:20px;background:#f5f8fa;color:#18263b;border-left:4px solid #a71920;padding:10px 14px;font-size:11px;font-weight:700;box-shadow:0 8px 30px #0005;z-index:10;opacity:0;transform:translateY(7px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:900px){.controls{width:270px;min-width:270px}.preview-stage{padding:16px}.canvas-frame canvas{max-width:calc(100vw - 310px)}.canvas-frame.wide canvas{max-width:calc(100vw - 310px)}}
@media(max-width:650px){.studio{display:block}.controls{position:relative;width:100%;height:auto;max-height:none}.brand-head{height:auto;min-height:64px}.controls-scroll{max-height:none;overflow:visible;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px}.control-section{border:1px solid #d8dfe8;background:#fff;padding:12px;margin:0}.export-section{grid-column:1/-1}.export-section .export-button{width:32%;display:inline-flex;margin-right:1%}.preview-area{min-height:500px}.preview-stage{padding:20px}.canvas-frame canvas,.canvas-frame.wide canvas{max-width:calc(100vw - 55px);max-height:none}.preview-footer{padding:0 16px 12px}}
@media(max-width:500px){.controls-scroll{display:block;padding:12px}.control-section{margin-bottom:12px}.brand-logo{width:95px}.preview-topbar{padding:0 10px}.preview-topbar>div{gap:6px}.preview-topbar strong{font-size:8px}.saved-status{font-size:7px!important}.preview-stage{padding:12px}.canvas-frame canvas,.canvas-frame.wide canvas{max-width:calc(100vw - 38px)}.export-section .export-button{width:100%;margin:4px 0}.preview-footer span{display:none}}
.brand-logo{width:95px;background:#102a43;padding:3px 5px}.logo-icon{background:#102a43}.remove-media{color:#275d85}.micro-label{color:#285e85}.export-button span{color:#285e85}.export-button.primary{background:#102a43;border-color:#102a43}.preview-area{background:radial-gradient(circle at 98% 4%,#1d3b59 0,transparent 33%),radial-gradient(circle at 92% 95%,#163756 0,transparent 32%),#08182a}.preview-topbar span:first-child{color:#83b9d8}.toast{border-left-color:#3679a8}
.brand-head{background:#102a43;border-bottom-color:#254763}.brand-logo{width:112px;height:42px;background:transparent;padding:0}.brand-head h1{color:#fff}.brand-head p{color:#bfd0df}
.platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.platform-grid button{min-height:29px;border:1px solid #bfcbda;border-radius:3px;background:#fff;color:#2c415a;font-size:9px;font-weight:800}.platform-grid button.active{background:#102a43;border-color:#102a43;color:#fff}.preset-hint{min-height:30px;margin:7px 0 12px;color:#657b92;font-size:8px;line-height:1.45}.canvas-frame canvas{aspect-ratio:auto}
.preview-topbar>div{min-width:0}.preview-topbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-status{flex:none}
.video-controls{display:flex;align-items:center;gap:6px;margin:5px 0 10px;padding:6px;border:1px solid #d4dfea;background:#edf3f8;border-radius:3px}.video-controls button{border:1px solid #9eb5c8;background:#fff;color:#163754;border-radius:3px;padding:4px 6px;font-size:8px;font-weight:800;white-space:nowrap}.video-controls input[type=range]{flex:1;min-width:40px;accent-color:#3679a8}.video-controls span{font-size:8px;color:#49627a;white-space:nowrap;font-weight:700}
.cover-link-row{display:flex;gap:5px}.cover-link-row input{flex:1;min-width:0;width:auto!important}.cover-link-row button{flex:none;border:1px solid #102a43;border-radius:3px;background:#102a43;color:#fff;padding:0 8px;font-size:9px;font-weight:800}.cover-link-row button:disabled{opacity:.6;cursor:wait}.cover-status{min-height:24px;margin:6px 0 9px;color:#667c91;font-size:8px;line-height:1.45}.cover-status.error{color:#a53c43}.cover-status.success{color:#2b685a}.media-divider{display:flex;align-items:center;gap:6px;margin:10px 0 7px;color:#8a9bae;font-size:7px;font-weight:800;letter-spacing:.7px}.media-divider::after{content:"";height:1px;background:#d9e2ea;flex:1}
