:root{--bg-dark: #0b0f17;--bg-panel: #111827;--bg-card: rgba(30, 41, 59, .45);--border-color: rgba(148, 163, 184, .16);--border-accent: rgba(56, 189, 248, .45);--primary-glow: #0284c7;--primary-accent: #38bdf8;--text-main: #f8fafc;--text-muted: #94a3b8;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif}*{box-sizing:border-box;margin:0;padding:0}body,html,#root{width:100%;height:100%;background-color:var(--bg-dark);color:var(--text-main);font-family:var(--font-family);overflow:hidden;-webkit-font-smoothing:antialiased}.app-container{display:flex;flex-direction:column;width:100vw;height:100vh;height:100dvh;background:var(--bg-dark);overflow:hidden}.header-bar{min-height:50px;background:#0b0f17f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 16px;z-index:50;flex-shrink:0}.brand-section{display:flex;align-items:center;gap:9px;text-decoration:none;cursor:pointer;flex-shrink:0;min-width:0}.brand-logo-box{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,#0ea5e9,#2563eb);display:flex;align-items:center;justify-content:center;flex-shrink:0}.brand-title{margin:0;font-size:15px;font-weight:700;color:var(--text-main);display:flex;align-items:center;white-space:nowrap;word-break:keep-all;letter-spacing:-.3px}.brand-title-text{white-space:nowrap;word-break:keep-all}.header-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.header-actions::-webkit-scrollbar{display:none}.header-btn{white-space:nowrap!important;word-break:keep-all!important;flex-shrink:0!important;min-width:fit-content!important}.btn-secondary{background:#1e293bb3;border:1px solid var(--border-color);color:#e2e8f0;font-size:12px;font-weight:600;padding:6px 12px;border-radius:8px;cursor:pointer;white-space:nowrap;word-break:keep-all;flex-shrink:0;min-width:0;transition:all .15s ease}.btn-secondary:hover{background:#334155d9;border-color:#94a3b859}.btn-active-subtle{border-color:#38bdf880;color:#7dd3fc;background:#0ea5e91f}.btn-icon-circle{width:30px;height:30px;min-width:30px!important;border-radius:50%;border:1px solid var(--border-color);background:#1e293ba6;color:var(--text-muted);font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s ease}.btn-icon-circle:hover{color:var(--text-main);border-color:var(--primary-accent)}.btn-primary{background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff;border:none;font-size:12px;font-weight:700;padding:7px 14px;border-radius:8px;cursor:pointer;white-space:nowrap;word-break:keep-all;flex-shrink:0;min-width:fit-content;transition:opacity .15s ease,transform .15s ease}.btn-secondary:disabled{opacity:.48;cursor:not-allowed}.btn-primary:hover{opacity:.94}.btn-primary:disabled{background:#334155a6;color:#94a3b8;opacity:.72;cursor:not-allowed}.main-workspace{display:flex;flex:1;min-height:0;overflow:hidden;position:relative}.sidebar-dock{width:64px;background:#0d121d;border-right:1px solid var(--border-color);display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:8px;z-index:40;flex-shrink:0}.nav-tab-btn{width:54px;min-height:50px;border-radius:10px;background:transparent;border:1px solid transparent;color:var(--text-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 2px;font-size:10px;font-weight:600;line-height:1.15;white-space:nowrap;word-break:keep-all;min-width:0;flex-shrink:0;cursor:pointer;transition:all .15s ease}.nav-tab-btn:hover{color:var(--text-main);background:#1e293b8c}.nav-tab-btn.active{background:#0ea5e924;border-color:#38bdf866;color:#38bdf8}.control-panel{width:288px;background:#0f1623;border-right:1px solid var(--border-color);display:flex;flex-direction:column;z-index:30;flex-shrink:0;min-height:0}.panel-header{height:42px;padding:0 12px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:700;flex-shrink:0}.panel-header-title{white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis}.panel-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.simple-section{display:flex;flex-direction:column}.simple-chip-row{display:flex;flex-wrap:wrap;gap:5px}.compact-card{padding:11px 12px;border-radius:10px;background:var(--bg-card);border:1px solid var(--border-color)}.compact-card-title{font-size:12.5px;font-weight:600;color:var(--text-main);white-space:nowrap;word-break:keep-all}.compact-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.compact-label{font-size:11.5px;color:var(--text-muted);white-space:nowrap;word-break:keep-all;flex-shrink:0}.compact-select{flex:1;min-width:0;padding:5px 8px;background:#0f172ae6;color:#f8fafc;border-radius:7px;border:1px solid var(--border-color);font-size:11.5px;font-weight:500}.tag-chip{padding:5px 11px;font-size:11.5px;border-radius:999px;border:1px solid var(--border-color);background:#1e293b73;color:#cbd5e1;cursor:pointer;font-weight:500;white-space:nowrap;word-break:keep-all;flex-shrink:0;min-width:fit-content;transition:all .15s ease}.tag-chip.active{border-color:#38bdf8a6;background:#0ea5e933;color:#7dd3fc;font-weight:700}.tag-chip-ghost{border-style:dashed;color:var(--text-muted)}.compact-input{flex:1;min-width:0;background:#0f172ad9;border:1px solid var(--border-color);border-radius:7px;padding:6px 10px;color:var(--text-main);font-size:12px;outline:none}.compact-input:focus{border-color:var(--primary-accent)}.empty-roi-box{font-size:12px;color:var(--text-muted);text-align:center;padding:16px 10px;background:#0f172a66;border:1px dashed var(--border-color);border-radius:10px;line-height:1.5}.roi-card{background:#1e293b66;border:1px solid var(--border-color);border-radius:9px;padding:7px 9px;cursor:pointer;transition:border-color .15s ease,background .15s ease}.roi-card-selected{border-color:#38bdf8;background:#0ea5e91a}.roi-single-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.roi-item-title{font-size:12px;font-weight:600;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roi-inline-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.btn-mini-step{background:#0f172acc;border:1px solid var(--border-color);color:#cbd5e1;min-width:24px;height:24px;padding:0 6px;font-size:11px;font-weight:600;border-radius:6px;cursor:pointer;white-space:nowrap;word-break:keep-all;flex-shrink:0}.btn-mini-step.active,.btn-mini-step:hover{border-color:var(--primary-accent);color:#38bdf8}.btn-text-danger{background:transparent;border:none;color:#f87171;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;word-break:keep-all}.btn-delete-roi{background:#ef44441f;border:1px solid rgba(239,68,68,.3);color:#fca5a5;padding:3px 7px;font-size:10.5px;font-weight:600;border-radius:6px;cursor:pointer;white-space:nowrap;word-break:keep-all;flex-shrink:0}.shape-select{background:#0f172ae6;border:1px solid var(--border-color);color:var(--text-main);padding:3px 6px;height:24px;border-radius:6px;font-size:11px;flex-shrink:0}.advanced-drawer{border-top:1px solid var(--border-color);padding-top:8px;margin-top:2px}.advanced-drawer-toggle{width:100%;background:transparent;border:none;color:var(--text-muted);font-size:11.5px;font-weight:600;display:flex;align-items:center;justify-content:space-between;padding:4px 2px;cursor:pointer}.advanced-drawer-toggle:hover{color:var(--text-main)}.advanced-drawer-body{margin-top:8px;padding:10px;border-radius:9px;background:#0f172a8c;border:1px solid var(--border-color);display:flex;flex-direction:column;gap:10px}.style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.style-grid-btn{padding:9px 10px;border-radius:8px;border:1px solid var(--border-color);background:#1e293b73;color:#cbd5e1;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;word-break:keep-all;min-width:0;text-align:center;transition:all .15s ease}.style-grid-btn.active{border-color:#38bdf8;background:#0ea5e92e;color:#fff}.btn-toggle-pill{padding:5px 12px;border-radius:999px;border:1px solid var(--border-color);background:#0f172acc;color:var(--text-muted);font-size:11.5px;font-weight:600;cursor:pointer;white-space:nowrap;flex-shrink:0}.btn-toggle-pill.on{border-color:#38bdf8;background:#0ea5e933;color:#7dd3fc}.workspace-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;height:100%;position:relative}.hybrid-toolbar{min-height:40px;background:#0d121de6;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;z-index:20;flex-shrink:0;overflow-x:auto;scrollbar-width:none}.hybrid-toolbar::-webkit-scrollbar{display:none}.hybrid-toolbar-left,.hybrid-toolbar-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.toolbar-hint-text{font-size:11.5px;color:var(--text-muted);white-space:nowrap}.hybrid-pill-group{display:flex;background:#0f172ae6;padding:2px;border-radius:8px;border:1px solid var(--border-color);gap:2px;flex-shrink:0}.hybrid-pill{padding:4px 10px;font-size:11.5px;font-weight:600;border-radius:6px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;white-space:nowrap;word-break:keep-all;flex-shrink:0;transition:all .15s ease}.hybrid-pill.active-auto{background:#0ea5e938;color:#7dd3fc}.hybrid-pill.active-manual{background:#f59e0b38;color:#fcd34d}.target-count-badge{font-size:11.5px;color:var(--text-muted);white-space:nowrap;word-break:keep-all;flex-shrink:0}.target-count-badge strong{color:#38bdf8}.canvas-viewport{flex:1;width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;background:#070a10;overflow:hidden;padding:6px}.upload-dropzone{border:1.5px dashed rgba(148,163,184,.28);border-radius:18px;padding:36px 28px;max-width:420px;width:92%;display:flex;flex-direction:column;align-items:center;gap:14px;cursor:pointer;background:#111827a6;transition:border-color .2s ease,background .2s ease}.upload-dropzone:hover{border-color:var(--primary-accent);background:#111827e0}.upload-icon-circle{width:54px;height:54px;border-radius:16px;background:#0ea5e924;color:#38bdf8;display:flex;align-items:center;justify-content:center}.upload-steps-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:4px;font-size:11px;color:#64748b}.floating-status-pill{position:absolute;top:10px;left:50%;transform:translate(-50%);border-radius:999px;padding:5px 13px;font-size:11px;font-weight:600;display:flex;align-items:center;gap:8px;z-index:30;white-space:nowrap;max-width:94%;overflow:hidden;text-overflow:ellipsis;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.floating-status-pill.active{background:#0f172aeb;border:1px solid rgba(56,189,248,.55);color:#f8fafc}.floating-status-pill.done{background:#0f172ac7;border:1px solid rgba(16,185,129,.4);color:#6ee7b7;padding:3px 11px;font-size:10.5px}.main-canvas{flex:1 1 auto;min-height:0;width:100%!important;max-width:100%!important;max-height:calc(100% - 44px)!important;height:100%!important;object-fit:contain!important;border-radius:8px;cursor:crosshair;touch-action:none}.video-result-control-bar{display:flex;align-items:center;gap:8px;background:#0f172aeb;border:1px solid var(--border-color);border-radius:12px;padding:6px 10px;width:min(96%,720px);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:25;flex-shrink:0}.app-footer{width:100%;padding:6px 14px;background:#090c13;border-top:1px solid rgba(255,255,255,.05);color:#475569;font-size:10.5px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;flex-shrink:0}.help-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#050811bf;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:16px;z-index:200}.help-modal-content{width:min(500px,95vw);max-height:84vh;background:#111827;border:1px solid var(--border-color);border-radius:16px;box-shadow:0 24px 64px #000000a6;display:flex;flex-direction:column;overflow:hidden}.help-modal-header{padding:14px 16px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between}.help-modal-tabs{display:flex;gap:6px;padding:10px 16px;border-bottom:1px solid var(--border-color);overflow-x:auto}.help-tab-btn{padding:6px 12px;border-radius:8px;border:1px solid var(--border-color);background:#1e293b80;color:var(--text-muted);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;word-break:keep-all;flex-shrink:0}.help-tab-btn.active{background:#0ea5e92e;border-color:var(--primary-accent);color:#38bdf8}.help-modal-body{padding:16px;overflow-y:auto;flex:1}.help-card{background:#0f172a99;border:1px solid var(--border-color);border-radius:10px;padding:12px 14px;font-size:12px;color:#cbd5e1;line-height:1.55}.help-card h4{font-size:13px;font-weight:700;color:#f8fafc;margin-bottom:5px}.help-list{padding-left:16px;display:flex;flex-direction:column;gap:5px}.help-badge{font-size:10px;padding:2px 7px;border-radius:6px;background:#38bdf824;color:#7dd3fc;white-space:nowrap}@media (max-width: 768px){.app-container,.header-bar,.main-workspace,.workspace-main,.control-panel,.panel-body,.compact-card,.sidebar-dock,.hybrid-toolbar,.canvas-viewport{width:100%!important;max-width:100vw!important;min-width:0!important}.header-bar{padding:6px 10px;min-height:46px;gap:6px}.brand-logo-box{width:26px;height:26px}.brand-title{font-size:14px}.header-btn{padding:5px 9px!important;font-size:11.5px!important}.btn-icon-circle.header-btn{padding:0!important;width:28px;height:28px;min-width:28px!important}.toolbar-hint-text{display:none}.main-workspace{flex-direction:column}.workspace-main{order:1;flex:1;min-height:210px}.hybrid-toolbar{padding:4px 8px;min-height:38px;flex-wrap:wrap;row-gap:4px;overflow-x:visible}.hybrid-toolbar-left,.hybrid-toolbar-right{flex-wrap:wrap;gap:5px}.hybrid-pill{padding:4px 8px;font-size:11px}.control-panel{order:2;max-height:28vh;border-right:none;border-top:1px solid var(--border-color)}.panel-header{height:36px;padding:0 10px}.panel-body{padding:10px;gap:8px;overflow-x:hidden}.sidebar-dock{order:3;height:48px;flex-direction:row;justify-content:space-around;padding:4px 8px;border-right:none;border-top:1px solid var(--border-color)}.nav-tab-btn{flex:1;max-width:108px;min-height:40px;flex-direction:row;gap:6px;font-size:11.5px}.upload-dropzone{padding:24px 18px;gap:10px}.video-result-control-bar{gap:5px;padding:6px 8px;flex-wrap:wrap;justify-content:space-between}.video-result-control-bar input[type=range]{min-width:90px;flex:1 1 120px}.app-footer{display:none}}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#94a3b847;border-radius:4px}.tag-chip{display:inline-flex;align-items:center;gap:5px}.tag-chip-locked{opacity:.85;border-color:#a855f752}.mini-paid-badge{font-size:9px;font-weight:800;padding:1px 5px;border-radius:4px;letter-spacing:.2px;white-space:nowrap;flex-shrink:0}.mini-paid-badge.pro{background:#0ea5e933;color:#38bdf8;border:1px solid rgba(56,189,248,.45)}.mini-paid-badge.biz{background:#a855f72e;color:#c084fc;border:1px solid rgba(168,85,247,.45)}.pro-feature-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 11px;border-radius:9px;background:#0ea5e914;border:1px solid rgba(56,189,248,.28);color:var(--text-main);font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}.pro-feature-row:hover,.pro-feature-row.active{background:#0ea5e929;border-color:#38bdf8}.pro-feature-row-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.paid-card-row{border-color:#94a3b83d}.pricing-modal-content{width:min(760px,96vw);max-height:88vh;background:#111827;border:1px solid var(--border-color);border-radius:16px;box-shadow:0 24px 64px #000000b8;display:flex;flex-direction:column;overflow:hidden}.pricing-gate-banner{margin:12px 16px 0;padding:10px 13px;border-radius:10px;background:#0ea5e91f;border:1px solid rgba(56,189,248,.4);font-size:12px;color:#e2e8f0;line-height:1.45}.pricing-grid{padding:14px 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow-y:auto;flex:1}.pricing-tier-card{background:#0f172aa6;border:1px solid var(--border-color);border-radius:12px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0}.pricing-tier-card.highlighted{border-color:#38bdf8;background:#0ea5e914}.pricing-tier-top h3{font-size:14.5px;font-weight:700;color:#f8fafc;margin-top:6px}.tier-stage-tag{display:inline-block;font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px}.tier-stage-tag.free{background:#10b98129;color:#6ee7b7}.tier-stage-tag.pro{background:#0ea5e933;color:#7dd3fc}.tier-stage-tag.biz{background:#a855f733;color:#d8b4fe}.tier-price{font-size:16px;font-weight:800;color:#f8fafc;margin-top:6px}.tier-price span{font-size:11px;font-weight:500;color:var(--text-muted)}.pricing-feature-list{padding-left:15px;display:flex;flex-direction:column;gap:6px;font-size:11.5px;color:#cbd5e1;line-height:1.45;flex:1}.tier-footer-status{text-align:center;padding:7px 10px;border-radius:8px;background:#1e293b99;color:#94a3b8;font-size:11.5px;font-weight:600}.tier-cta-link{text-decoration:none;text-align:center;display:block;width:100%}.license-verify-bar{padding:10px 16px;border-top:1px solid var(--border-color);display:flex;align-items:center;gap:8px;flex-wrap:wrap}@media (max-width: 768px){.pricing-grid{grid-template-columns:1fr}}
