:root{color-scheme:light;--bg: #f9e7a1;--bg-soft: #fff8df;--panel: rgba(255, 251, 238, .82);--panel-strong: #fff9eb;--ink: #34230d;--muted: #756246;--line: rgba(79, 54, 7, .12);--accent: #efb217;--accent-deep: #d48300;--accent-soft: #ffe8a9;--success: #25623c;--shadow: 0 22px 70px rgba(75, 48, 5, .14);font-family:Avenir Next,PingFang SC,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color:var(--ink);background-color:#d8b14f}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-height:100vh;overflow-x:hidden;position:relative;background:linear-gradient(180deg,#281c0a2e,#281c0a3d),linear-gradient(135deg,#fff5d52e,#ffc83e1f)}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:url(../bg/001.png) center center / cover fixed no-repeat;filter:grayscale(1)}button,input,textarea,select{font:inherit}button{cursor:pointer}code{font-family:SF Mono,Menlo,monospace}.page-shell{min-height:100vh;padding:16px;position:relative}.page-shell:before,.page-shell:after{content:"";position:fixed;z-index:0;pointer-events:none;inset:0}.page-shell:before{background:linear-gradient(180deg,#fff8e22e,#ffd6681f),url(../bg/002.png) center center / cover fixed no-repeat;opacity:.3;mix-blend-mode:screen;filter:blur(22px) saturate(1.05)}.page-shell:after{background:radial-gradient(circle at 16% 18%,rgba(255,255,255,.26),transparent 22%),radial-gradient(circle at 84% 16%,rgba(255,217,120,.2),transparent 18%),linear-gradient(180deg,#56390c24,#56390c14);opacity:1}.gate-layout,.studio-topbar,.studio-layout,.status-card{position:relative;z-index:1}.gate-layout{width:min(1120px,100%);margin:0 auto;display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:stretch;min-height:calc(100vh - 64px)}.gate-hero,.gate-panel,.studio-panel,.status-card,.studio-topbar{border:1px solid var(--line);background:var(--panel);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--shadow)}.gate-hero,.gate-panel,.studio-panel,.status-card{border-radius:32px;padding:32px;min-width:0}.gate-hero{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:540px;padding:0;border:0;overflow:hidden}.gate-hero-image{display:block;width:100%;height:100%;min-height:476px;object-fit:cover;border-radius:inherit}.gate-panel{position:relative;display:flex;flex-direction:column;justify-content:center}.gate-panel-logo{position:absolute;top:24px;left:24px;z-index:1;width:56px;height:56px;border-radius:14px;object-fit:cover}.eyebrow{margin:0 0 12px;font-size:.78rem;letter-spacing:.28em;text-transform:uppercase;color:var(--accent-deep);font-weight:700}h1,h2,p{margin:0}h1{font-size:clamp(2.5rem,6vw,5.2rem);line-height:.92;letter-spacing:-.05em;max-width:10ch}h2{font-size:clamp(1.4rem,3vw,2rem);line-height:1.05}.hero-copy,.topbar-copy,.section-title p,.panel-note,.token-hint span,.token-hint strong,.model-description,.model-tone,.reference-meta span,.empty-state small,.result-meta p{color:var(--muted)}.hero-copy{max-width:50ch;margin-top:18px;font-size:1.05rem}.hero-tags{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-tags span,.prompt-presets button,.download-link,.ghost-button,.primary-button,.remove-button,.gate-form button{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}.hero-tags span,.token-hint,.prompt-presets button,.model-callout,.empty-state{border:1px solid var(--line);background:#fffcf3cc}.hero-tags span{padding:10px 14px;border-radius:999px;color:var(--ink);font-weight:600}.gate-form{display:grid;gap:14px}.gate-form label,.field-label{font-weight:700}.field-label-inline{display:flex;align-items:baseline;gap:10px}.gate-form input,textarea,.model-selector,.upload-box{border:1px solid rgba(90,63,14,.16);background:var(--panel-strong)}.gate-form input,.model-selector,textarea{border-radius:20px;padding:16px 18px;color:var(--ink);outline:none}.gate-form input:focus,.model-selector:focus,textarea:focus{border-color:#d483007a;box-shadow:0 0 0 4px #efb21724}.model-selector{width:100%;margin-bottom:16px}.compact-selector{margin-bottom:0}.gate-form button,.primary-button{border:0;border-radius:999px;padding:16px 18px;background:linear-gradient(135deg,var(--accent) 0%,#ffcf4c 100%);color:#2a1d09;font-weight:800;box-shadow:0 18px 32px #d4830038}.gate-form button:hover,.primary-button:hover,.download-link:hover,.ghost-button:hover,.remove-button:hover,.prompt-presets button:hover{transform:translateY(-1px)}.gate-form button:disabled,.primary-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.ghost-button:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}.panel-note{margin-top:18px}.panel-note strong{display:inline-block;margin-left:8px;color:var(--ink)}.status-card{width:min(560px,100%);margin:12vh auto 0}.studio-shell{padding-top:16px}.studio-topbar{width:100%;margin:0 auto 18px;padding:14px 20px;border-radius:22px;display:flex;justify-content:space-between;gap:14px;align-items:center}.studio-brand{display:flex;align-items:center;min-width:0}.studio-brand-with-copy{gap:16px}.studio-brand-logo{display:block;width:auto;height:44px;max-width:min(220px,48vw);object-fit:contain;border-radius:12px}.studio-topbar h1{max-width:none;font-size:clamp(1.5rem,3vw,2.2rem);line-height:1}.topbar-actions{display:flex;align-items:center;gap:12px}.token-hint{border-radius:18px;padding:12px 14px;display:grid;gap:4px;min-width:210px}.token-hint strong{color:var(--ink)}.ghost-button{border:1px solid rgba(79,54,7,.18);background:#fffbeeb8;color:var(--ink);padding:10px 14px;border-radius:14px;font-weight:700;text-decoration:none}.resource-manager-trigger{border:0;background:transparent;box-shadow:none;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;color:var(--ink);font-weight:700}.resource-manager-trigger svg{display:block;flex:0 0 auto}.resource-manager-trigger.is-pending{pointer-events:none}.resource-manager-trigger-spinner{width:16px;height:16px;flex:0 0 auto;border-radius:50%;border:2px solid rgba(79,54,7,.16);border-top-color:#4f3607d1;animation:storyboard-editor-library-spin .9s linear infinite}.resource-manager-trigger-label{display:inline-block;line-height:1;transform:translateY(1px)}.resource-manager-trigger:hover{transform:translateY(-1px);background:transparent;border-color:transparent;box-shadow:none}.studio-layout{width:100%;margin:0 auto;display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start}.studio-layout.is-professional-layout{grid-template-columns:1.15fr 1fr}.section-title{display:grid;gap:8px;margin-bottom:18px}.model-helper-text{margin-top:0;color:var(--muted);font-size:.88rem;font-weight:500}.image-option-field{display:grid;gap:6px}.image-option-field input{border:1px solid rgba(90,63,14,.16);background:var(--panel-strong);border-radius:20px;padding:14px 16px;color:var(--ink);outline:none}.image-option-field input:focus{border-color:#d483007a;box-shadow:0 0 0 4px #efb21724}.layout-config-card{display:grid;gap:10px}.canvas-custom-size-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.canvas-custom-size-field input{width:100%}.professional-storyboard-global-panel{display:grid;gap:8px;padding:12px;border:1px solid rgba(79,54,7,.08);background:#fffbf08f}.professional-global-prompt-textarea{height:calc(2.9em + 28px);min-height:calc(2.9em + 28px);max-height:calc(2.9em + 28px);padding:14px 16px;border-radius:18px;font-size:.94rem;line-height:1.45;overflow-y:auto;resize:none}.professional-style-reference-panel{display:grid;gap:8px}.professional-style-upload{min-height:84px;padding:12px 14px}.professional-style-reference-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:10px;align-items:start;padding:6px;border:1px solid rgba(79,54,7,.1);background:#fffcf3d6}.professional-style-reference-media{overflow:hidden;background:#fff9ebe6;aspect-ratio:1 / 1}.professional-style-reference-media img{width:100%;height:100%;object-fit:cover;display:block}.professional-style-reference-copy{display:grid;gap:2px;min-width:0}.professional-style-reference-copy strong{display:block;font-size:.84rem;line-height:1.35;max-width:100%;overflow-wrap:anywhere;word-break:break-word}.professional-style-reference-copy span{color:var(--muted);font-size:.78rem;line-height:1.4;max-width:100%;overflow-wrap:anywhere;word-break:break-word}.professional-style-reference-actions{display:flex;align-items:flex-start;gap:4px;align-content:start;justify-self:end}.professional-style-reference-action{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;padding:0;border-radius:9px;cursor:pointer}.professional-style-reference-action input{display:none}.professional-style-reference-action svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.professional-style-reference-action-danger{color:#94362beb}.layout-control-row{display:flex;align-items:end;gap:10px;flex-wrap:nowrap}.layout-select-field{flex:0 0 120px;min-width:120px}.canvas-size-full-row-field{flex:1 1 100%;min-width:100%}.scenario-select-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.scenario-select-row{display:flex;align-items:stretch;gap:10px}.scenario-select-row .model-selector{flex:1 1 auto;min-width:0}.scenario-compact-selector{padding:10px 14px;border-radius:14px}.scenario-manager-trigger{flex:0 0 auto;width:48px;height:auto;min-height:0;padding:0;border-radius:14px;display:inline-flex;align-items:center;justify-content:center}.scenario-manager-trigger svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.image-size-field{flex:0 0 88px}.layout-track-field{flex:0 0 72px;min-width:72px}.multi-image-callout{border:1px solid rgba(79,54,7,.12);border-radius:18px;padding:14px 16px;background:#fffcf3d1;color:var(--muted);font-size:.9rem;line-height:1.5}.layout-preview-shell{border-radius:20px;padding:0}.storyboard-style-disclosure{display:grid;gap:10px;margin-top:14px}.storyboard-style-toggle{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(79,54,7,.12);border-radius:18px;background:linear-gradient(180deg,#fffcf3f5,#fff7dfe6);color:#34230deb;text-align:left;box-shadow:inset 0 1px #ffffffc7,0 10px 24px #4f360714}.storyboard-style-toggle span:first-child{font-size:.9rem;font-weight:800}.storyboard-style-toggle-meta{color:var(--muted);font-size:.78rem;font-weight:700;line-height:1.4;white-space:normal;text-align:right}.storyboard-style-toggle-icon{font-size:.94rem;color:#5f4612e6;transition:transform .18s ease}.storyboard-style-toggle.is-open .storyboard-style-toggle-icon{transform:rotate(180deg)}.storyboard-style-controls-panel{width:100%;margin-left:0;padding:2px 0 0}.storyboard-model-field{flex:1 1 100%}.layout-preview-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}.layout-preview-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.storyboard-share-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;border-radius:12px}.storyboard-share-button svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.storyboard-share-button.is-success{border-color:#43996847;background:#eefff4e6;color:#25623cf5}.storyboard-share-button.is-error{border-color:#bd4a4a3d;background:#fff2f2eb;color:#8e2a2af0}.section-title-inline{display:grid;gap:2px}.section-title-inline strong{font-size:.92rem}.section-title-inline span{color:var(--muted);font-size:.84rem;line-height:1.45}.layout-preview-controls{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin-left:auto}.compact-range-field{min-width:188px;gap:10px;padding:10px 12px 12px;border:1px solid rgba(79,54,7,.12);border-radius:18px;background:linear-gradient(180deg,#fffdf7f5,#fff7dfe0);box-shadow:inset 0 1px #ffffffc7,0 10px 24px #4f360714}.compact-range-field .field-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.compact-range-field .field-label{font-size:.86rem;font-weight:700;line-height:1.3}.compact-range-field .field-label strong{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:26px;padding:0 10px;border-radius:999px;background:#34230d14;color:#34230dd1;font-size:.76rem;font-weight:800;letter-spacing:.01em}.compact-range-field input[type=range]{-webkit-appearance:none;appearance:none;width:100%;margin:0;height:28px;border-radius:999px;background:transparent;cursor:pointer}.compact-range-field input[type=range]:focus{outline:none}.compact-range-field input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(90deg,#ffcf4ceb,#d48300eb);box-shadow:inset 0 1px 2px #4f36072e,0 0 0 1px #4f36070f}.compact-range-field input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;margin-top:-5px;border:2px solid rgba(255,255,255,.96);border-radius:50%;background:radial-gradient(circle at 35% 35%,#fffaf0,#ffe8a6 52%,#d48300);box-shadow:0 6px 14px #4f36072e,0 0 0 1px #784f0533}.compact-range-field input[type=range]::-moz-range-track{height:8px;border:0;border-radius:999px;background:linear-gradient(90deg,#ffcf4ceb,#d48300eb);box-shadow:inset 0 1px 2px #4f36072e,0 0 0 1px #4f36070f}.compact-range-field input[type=range]::-moz-range-thumb{width:18px;height:18px;border:2px solid rgba(255,255,255,.96);border-radius:50%;background:radial-gradient(circle at 35% 35%,#fffaf0,#ffe8a6 52%,#d48300);box-shadow:0 6px 14px #4f36072e,0 0 0 1px #784f0533}.compact-range-field input[type=range]::-moz-range-progress{height:8px;border-radius:999px;background:linear-gradient(90deg,#ffcf4ceb,#d48300eb)}.storyboard-clear-button{flex:0 0 auto;white-space:nowrap}.layout-preview-square{width:min(100%,340px);margin:2px auto 0}.layout-preview-canvas{display:block;width:100%;height:100%;border-radius:18px}.storyboard-grid{--storyboard-divider-size: 2px;--storyboard-divider-color: rgba(255, 255, 255, .96);width:100%;height:100%;display:grid;position:relative;gap:var(--storyboard-divider-size);padding:var(--storyboard-divider-size);overflow:hidden;border-radius:0;border:0;background:var(--storyboard-divider-color);box-shadow:0 16px 32px #4f360714}.storyboard-cell{position:relative;overflow:hidden;border:0;border-radius:0;min-height:0;padding:10px 10px 12px;display:grid;grid-template-rows:auto 1fr auto;align-items:start;gap:8px;text-align:left;background:linear-gradient(180deg,#f6efe1e6,#f1e9d9f0);color:var(--ink);transition:background .18s ease,box-shadow .18s ease,filter .18s ease}.storyboard-cell:hover:not(:disabled){filter:brightness(1.02);box-shadow:inset 0 0 0 1px #d483002e}.storyboard-cell:disabled{cursor:wait;opacity:1}.storyboard-cell-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.storyboard-cell:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#fffaeb14,#34230d2e);opacity:0;transition:opacity .18s ease}.storyboard-cell.has-image:after{opacity:1}.storyboard-cell-index,.storyboard-cell-prompt,.storyboard-cell-status,.storyboard-cell-caption{position:relative;z-index:1}.storyboard-cell-index{justify-self:start;align-self:start;width:28px;min-height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin-top:-2px;border-radius:999px;background:#080808c7;color:#fff;font-size:.68rem;font-weight:800;line-height:1.2;box-shadow:0 8px 18px #08080829}.storyboard-cell-prompt{align-self:center;justify-self:start;max-width:min(calc(100% - 18px),100%);display:inline;padding:0 .36em .04em;border-radius:0;background:#ffffffd1;box-decoration-break:clone;-webkit-box-decoration-break:clone;color:#1a1510eb;font-size:.86rem;line-height:1.45;font-weight:700;word-break:break-word;white-space:pre-wrap;text-shadow:none}.storyboard-cell-status{font-size:.76rem;color:#34230dc2;font-weight:700}.storyboard-cell.has-caption{padding-bottom:calc(40px + (var(--storyboard-caption-font-scale, 1) - 1) * 20px)}.storyboard-cell-caption{position:absolute;left:5px;right:5px;bottom:5px;text-align:center;z-index:1;pointer-events:none}.storyboard-cell-caption-text{display:inline;padding:0 .36em .04em;border-radius:0;background:#080808bf;box-decoration-break:clone;-webkit-box-decoration-break:clone;color:#fff;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,PingFang SC,Helvetica Neue,sans-serif;font-size:calc(.76rem * var(--storyboard-caption-font-scale, 1));line-height:1.24;font-weight:800;letter-spacing:-.03em;word-break:break-word;white-space:pre-wrap}.storyboard-cell.is-loading{z-index:2;overflow:hidden;isolation:isolate;box-shadow:inset 0 0 0 2px #9ae0d542;animation:storyboard-cell-breathe 1.8s ease-in-out infinite}.storyboard-cell.is-loading:before{content:none}.storyboard-cell.is-success{background:linear-gradient(180deg,#ddf3e2eb,#cdedd6f5);box-shadow:inset 0 0 0 1px #25623c2e}.storyboard-cell.is-loading .storyboard-cell-status,.storyboard-cell.is-success .storyboard-cell-status{position:absolute;top:8px;right:8px;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:88px;min-height:28px;padding:3px 8px;background:linear-gradient(180deg,#ffffffb8,#ffffff85);border:1px solid rgba(255,255,255,.56);border-radius:999px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#271f18e0;font-size:.68rem;font-weight:800;letter-spacing:.02em;text-shadow:none;box-shadow:0 10px 24px #3d5c6c1f}.storyboard-cell.is-loading .storyboard-cell-status:before{content:"";width:14px;height:14px;border-radius:50%;background:conic-gradient(from 0deg,#78d7fffa,#78ffd6fa,#ffd378fa,#ff8cc9fa,#78d7fffa);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));box-shadow:0 0 0 1px #ffffffb3,0 0 16px #84dbff57;animation:storyboard-cell-spinner-spin .95s linear infinite}.storyboard-cell.is-success .storyboard-cell-status{background:#080808c7;border-color:#ffffff2e;color:#fff;box-shadow:0 10px 24px #0808082e}.storyboard-cell.is-success .storyboard-cell-status:before{content:"✓";width:14px;height:14px;display:grid;place-items:center;border-radius:50%;background:#ffffff24;color:#fff;font-size:.68rem;font-weight:900;line-height:1;box-shadow:inset 0 0 0 1px #fff3}.storyboard-cell.is-loading.has-image .storyboard-cell-status{color:#271f18e0;text-shadow:none}.storyboard-editor-overlay{position:fixed;inset:0;z-index:115;display:grid;place-items:center;padding:20px;overflow:auto;background:radial-gradient(circle at top,rgba(255,220,116,.16),transparent 30%),#2e1f0a94;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.storyboard-editor-panel{width:min(920px,100%);max-height:calc(100dvh - 40px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid rgba(79,54,7,.12);border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#fffcf3fa,#fff7dff0);box-shadow:0 28px 80px #311f0338}.storyboard-editor-windowbar{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid rgba(79,54,7,.1);background:linear-gradient(180deg,#fffbeefa,#fff5dbe0)}.storyboard-editor-windowbar-spacer{width:32px;height:32px}.storyboard-editor-windowbar strong{text-align:center;font-size:.9rem;line-height:1.35}.storyboard-editor-nav-button{min-height:32px;margin-top:0;padding:7px 12px;border-radius:10px;white-space:nowrap}.storyboard-editor-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;overflow:auto;gap:14px;padding:10px 16px 16px}.storyboard-editor-mode-row{padding:16px 16px 0}.storyboard-editor-layout.has-preview{grid-template-columns:minmax(0,1fr) minmax(240px,.84fr);align-items:start}.storyboard-editor-form{display:grid;align-content:start;gap:10px}.storyboard-editor-mode-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border:1px solid rgba(79,54,7,.1);border-radius:20px;background:linear-gradient(180deg,#fffaeff5,#f7efdfe0);box-shadow:inset 0 1px #ffffffd6,0 10px 26px #4f36070d}.storyboard-editor-mode-button{min-height:50px;border:1px solid transparent;border-radius:16px;background:transparent;color:#6c542bb8;font-weight:800;transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}.storyboard-editor-mode-button.is-active{border-color:#e0ab3257;background:linear-gradient(180deg,#fff3c3fa,#ffeba4e6);color:#3a280ef5;box-shadow:inset 0 1px #ffffffd1,0 6px 18px #d4830024}.storyboard-editor-mode-button:not(.is-active):hover{background:#ffffff6b;color:#57421fe6}.storyboard-editor-mode-note{margin:-2px 0 0;color:var(--muted);font-size:.8rem;line-height:1.45}.storyboard-editor-footer{padding:0 16px 16px}.storyboard-editor-pager{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid rgba(79,54,7,.08);border-radius:18px;background:#fffffd66}.storyboard-editor-pager-status{min-width:0;color:var(--muted);font-size:.88rem;font-weight:700;text-align:center}.storyboard-reference-panel{display:grid;gap:8px}.storyboard-editor-asset-panel{display:grid;gap:10px;padding:12px;border:1px solid rgba(79,54,7,.08);border-radius:18px;background:#fffaed8f}.storyboard-reference-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.storyboard-reference-parent-hint{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:#fff4cceb;color:#5f4612eb;font-size:.74rem;font-weight:700;white-space:nowrap}.storyboard-reference-card{grid-template-columns:108px minmax(0,1fr)}.storyboard-reference-upload{min-height:80px}.storyboard-editor-asset-upload{min-height:88px}.storyboard-caption-field{display:grid;gap:6px}.storyboard-caption-field-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.storyboard-caption-field-hint{color:#756246e0;font-size:.78rem;line-height:1.4}.storyboard-caption-textarea{min-height:calc(2.9em + 28px);max-height:calc(8.7em + 28px);padding:14px 16px;border-radius:18px;border:1px solid rgba(90,63,14,.16);background:linear-gradient(180deg,#ffffffeb,#fffaeff5);box-shadow:inset 0 1px #ffffffb8,0 10px 24px #4f360714;font-size:.94rem;line-height:1.45;resize:none;white-space:pre-wrap}.storyboard-editor-prompt-textarea{padding:14px 16px;border-radius:18px;font-size:.94rem;line-height:1.45}.storyboard-caption-textarea::placeholder{color:#7562469e}.storyboard-editor-status{color:var(--muted);font-size:.88rem;font-weight:700}.storyboard-editor-actions{display:flex;align-items:center;justify-content:flex-start}.storyboard-editor-preview-card{display:grid;align-content:start;gap:8px}.storyboard-editor-preview-empty{display:grid;place-items:center;gap:6px;min-height:min(40dvh,420px);padding:16px;border:1px dashed rgba(120,93,43,.24);border-radius:18px;background:linear-gradient(180deg,#ffffffe6,#fff7dfd6);color:#57421feb;text-align:center}.storyboard-editor-preview-empty strong{font-size:1rem}.storyboard-editor-preview-empty span{color:#756246e6;font-size:.88rem;line-height:1.6}.storyboard-editor-preview-button{position:relative;border:1px solid rgba(79,54,7,.12);border-radius:18px;padding:0;overflow:hidden;background:#fff9;box-shadow:0 18px 32px #4f36071f}.storyboard-editor-preview-card.is-refreshing .storyboard-editor-preview-button:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:#0c0c0e6b}.storyboard-editor-preview-card.is-refreshing .storyboard-editor-preview-button:after{content:"";position:absolute;inset:-12px;z-index:2;pointer-events:none;border-radius:inherit;background:radial-gradient(38% 34% at 8% 18%,rgba(122,214,255,.5),transparent 72%),radial-gradient(34% 30% at 88% 16%,rgba(255,142,214,.46),transparent 74%),radial-gradient(36% 32% at 84% 88%,rgba(255,198,128,.42),transparent 76%),radial-gradient(34% 30% at 14% 86%,rgba(140,241,191,.4),transparent 74%),radial-gradient(54% 44% at 50% 4%,rgba(246,250,255,.22),transparent 78%);opacity:.82;filter:blur(22px) saturate(1.02);mix-blend-mode:screen;animation:storyboard-editor-refresh-aurora-drift 4.8s ease-in-out infinite alternate,storyboard-editor-refresh-ring-breathe 2.2s ease-in-out infinite}.storyboard-editor-preview-button img{display:block;width:100%;max-height:min(40dvh,420px);aspect-ratio:auto;object-fit:contain;background:#fffbf2eb}.storyboard-editor-preview-meta{display:grid;gap:4px}.storyboard-editor-preview-meta span{color:var(--muted);font-size:.84rem;font-weight:700}.storyboard-editor-library-button{justify-self:start;display:inline-flex;align-items:center;gap:8px}.storyboard-editor-library-button.is-pending{pointer-events:none}.storyboard-editor-library-spinner{width:14px;height:14px;border-radius:50%;border:2px solid rgba(79,54,7,.16);border-top-color:#4f3607d1;animation:storyboard-editor-library-spin .9s linear infinite}.storyboard-library-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;padding:4px 2px 2px;overflow:auto}.storyboard-library-item{display:grid;gap:10px;padding:10px;border:1px solid rgba(79,54,7,.12);border-radius:18px;background:linear-gradient(180deg,#ffffffeb,#fff8e4e6);text-align:left;box-shadow:inset 0 1px #ffffffbd,0 12px 24px #4f360714;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.storyboard-library-item:hover{transform:translateY(-1px);border-color:#d4830047;box-shadow:inset 0 1px #ffffffc2,0 16px 30px #d483001f}.storyboard-library-item.is-selected{border-color:#d4830057;box-shadow:0 0 0 4px #efb2171f,0 18px 34px #d483001f}.storyboard-library-item-media{display:block;overflow:hidden;border-radius:14px;background:#fffbf2eb}.storyboard-library-item-media img{display:block;width:100%;aspect-ratio:1 / 1;object-fit:cover}.storyboard-library-item-copy{display:grid;gap:4px;min-width:0}.storyboard-library-item-copy strong,.storyboard-library-item-copy span,.storyboard-library-item-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.storyboard-library-item-copy strong{color:#34230df0;font-size:.86rem}.storyboard-library-item-copy span,.storyboard-library-item-copy small{color:#756246e0;font-size:.76rem}.storyboard-library-empty-state{margin-top:4px}.storyboard-confirm-overlay{position:fixed;inset:0;z-index:116;display:grid;place-items:center;padding:20px;background:#2e1f0a70;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.storyboard-confirm-panel{width:min(460px,100%);display:grid;gap:12px;padding:22px;border:1px solid rgba(79,54,7,.12);border-radius:24px;background:linear-gradient(180deg,#fffcf3fa,#fff7dff0);box-shadow:0 24px 60px #311f0333}.storyboard-confirm-panel strong{font-size:1.02rem}.storyboard-confirm-panel p{margin:0;color:var(--muted);line-height:1.6}.storyboard-confirm-actions{display:flex;justify-content:flex-end;gap:12px}.storyboard-confirm-danger{background:linear-gradient(135deg,#ffb347,#ff9f1a)}.scenario-manager-overlay{position:fixed;inset:0;z-index:116;display:grid;place-items:center;padding:20px;background:#2e1f0a70;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.scenario-manager-panel{width:min(1040px,100%);height:min(78vh,820px);display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;border:1px solid rgba(79,54,7,.12);border-radius:24px;background:linear-gradient(180deg,#fffcf3fa,#fff7dff0);box-shadow:0 28px 80px #311f0338}.scenario-manager-windowbar{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid rgba(79,54,7,.1);background:linear-gradient(180deg,#fffbeefa,#fff5dbe0)}.scenario-manager-windowbar strong{font-size:.94rem;text-align:center}.scenario-manager-layout{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:0}.scenario-manager-sidebar{display:grid;align-content:start;gap:18px;min-height:0;overflow:auto;padding:18px 16px;border-right:1px solid rgba(79,54,7,.08);background:linear-gradient(180deg,#fffae9eb,#fff6dcc2)}.scenario-manager-section{display:grid;gap:10px}.scenario-manager-section-header{display:flex;align-items:start;justify-content:space-between;gap:10px}.scenario-manager-add-button,.scenario-manager-item-action{white-space:nowrap}.scenario-manager-list{display:grid;gap:8px}.scenario-manager-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(79,54,7,.1);border-radius:16px;background:#fffbf0d1}.scenario-manager-item-button{width:100%;text-align:left}.scenario-manager-item-button.is-active{border-color:#d4830042;background:#fff2c7d6;box-shadow:0 0 0 4px #efb2171a}.scenario-manager-item-copy{display:grid;gap:3px;min-width:0}.scenario-manager-item-copy strong{font-size:.88rem;color:#34230df0}.scenario-manager-item-copy span{color:#756246e6;font-size:.78rem;line-height:1.4}.scenario-manager-empty-state{margin-top:2px}.scenario-manager-editor{display:grid;align-content:start;gap:12px;min-height:0;overflow:auto;padding:18px}.scenario-manager-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.scenario-manager-preview{display:grid;gap:4px;padding:12px 14px;border:1px solid rgba(79,54,7,.1);border-radius:18px;background:#fffbf0b8}.scenario-manager-preview span{color:#756246e6;font-size:.84rem}.scenario-manager-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.scenario-manager-delete-button{margin-right:auto;color:#94362beb}.prompt-form{display:grid;gap:14px}.prompt-form.is-simple-panel{gap:16px}.prompt-panel{transition:min-height .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease}.prompt-panel.is-focus-mode{align-self:stretch;min-height:calc(100vh - 118px);background:linear-gradient(180deg,#fffcf1f2,#fff7dfe0);border-color:#d4830033;box-shadow:0 28px 80px #4b300529,inset 0 1px #fff9}.prompt-form.is-focus-mode{height:100%;min-height:100%;grid-template-rows:auto 1fr auto auto}.prompt-field-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-mode-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:6px;border:1px solid rgba(79,54,7,.1);border-radius:18px;background:#fffaebc7}.panel-mode-button{border:0;border-radius:14px;min-height:42px;padding:0 14px;font-weight:800;color:var(--muted);background:transparent;box-shadow:none;transition:transform .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease}.panel-mode-button:hover{transform:translateY(-1px);color:var(--ink);background:#fff5d2b3}.panel-mode-button:focus-visible{outline:none;color:var(--ink);box-shadow:0 0 0 4px #efb21724}.panel-mode-button.is-active{color:var(--ink);background:linear-gradient(180deg,#fff9e7fa,#ffeaadf5);box-shadow:inset 0 1px #ffffffbd,0 12px 24px #d483001f}.prompt-mode-button{width:38px;height:38px;border:1px solid rgba(79,54,7,.12);border-radius:14px;padding:0;display:grid;place-items:center;background:linear-gradient(180deg,#ffffffdb,#fff5d2f0);color:var(--ink);box-shadow:inset 0 1px #ffffffb3,0 10px 24px #4f360714;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}.prompt-mode-button:hover{transform:translateY(-1px);border-color:#d4830057;box-shadow:inset 0 1px #ffffffbd,0 14px 28px #d4830024}.prompt-mode-button:focus-visible{outline:none;border-color:#d483007a;box-shadow:0 0 0 4px #efb21724,0 14px 28px #d4830024}.prompt-mode-button.is-active{border-color:#d4830052;background:linear-gradient(180deg,#fff8e6fa,#ffeaadf5)}.prompt-mode-button svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.prompt-form.is-focus-mode textarea{min-height:clamp(520px,calc(100vh - 250px),900px);height:100%;max-height:none;padding:20px 22px;font-size:1rem;line-height:1.75;border-radius:24px;background:linear-gradient(180deg,#fffdf5fa,#fff9e4f0);box-shadow:inset 0 1px #ffffffbf,0 18px 42px #4f360714}.focus-mode-note{color:var(--muted);font-size:.86rem;text-align:right}.upload-box{border:1px dashed rgba(212,131,0,.28);border-radius:20px;min-height:86px;padding:14px 16px;display:grid;place-items:center;gap:4px;cursor:pointer;text-align:center;background:#fffbf0c7;transition:border-color .18s ease,background-color .18s ease,transform .18s ease,box-shadow .18s ease}.upload-box:hover,.upload-box.is-drag-active{border-color:#d4830080;background:#fff7dfe6;box-shadow:0 16px 32px #f1b0121a}.upload-box.is-drag-active{transform:translateY(-1px)}.upload-box input{display:none}.upload-box span{font-weight:800;font-size:.96rem}.upload-box small{color:var(--muted);font-size:.84rem}.reference-grid{--reference-item-width: clamp(92px, 11vw, 112px);display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 8px;margin:0 -2px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;touch-action:pan-x}.reference-grid.is-dragging{scroll-snap-type:none}.reference-grid::-webkit-scrollbar{height:8px}.reference-grid::-webkit-scrollbar-thumb{background:#d4830038;border-radius:999px}.reference-item{flex:0 0 var(--reference-item-width);scroll-snap-align:start;cursor:grab}.reference-item.is-dragging{z-index:2;opacity:0!important}.reference-hint{margin:-2px 0 0;color:var(--muted);font-size:.9rem}.reference-card{position:relative;border:1px solid rgba(79,54,7,.12);border-radius:12px;padding:6px;background:#fffcf3b3;transition:transform .22s cubic-bezier(.2,.72,.2,1),box-shadow .22s cubic-bezier(.2,.72,.2,1),border-color .22s ease,background-color .22s ease}.reference-card.is-dragging{background:#fffcf3f5;border-color:#d4830047;box-shadow:0 22px 42px #4f36072e;opacity:1!important}.reference-item-clone{z-index:40;opacity:1!important}.reference-badge{position:absolute;top:9px;left:9px;z-index:1;border-radius:999px;padding:2px 6px;background:#34230dd1;color:#fff8ea;font-size:.62rem;font-weight:700;letter-spacing:.02em}.reference-close-button{position:absolute;top:8px;right:8px;z-index:1;width:20px;height:20px;border:0;border-radius:999px;background:#34230dd1;color:#fff8ea;font-size:.8rem;line-height:1;display:grid;place-items:center;padding:0;box-shadow:0 10px 20px #34230d2e}.reference-image-frame{aspect-ratio:1 / 1;width:100%;border-radius:10px;background:linear-gradient(180deg,#ffffffc2,#fff8e4eb);display:grid;place-items:center;overflow:hidden}.reference-card img{width:100%;height:100%;object-fit:contain;object-position:center;border-radius:12px}.reference-remove-fallback{display:none}textarea{min-height:0;max-height:calc(7.5em + 34px);line-height:1.5;resize:none;overflow-y:hidden}.prompt-presets{display:flex;flex-wrap:wrap;gap:10px}.prompt-presets button,.remove-button,.download-link{border:1px solid rgba(79,54,7,.12);background:#fffcf3db;color:var(--ink)}.prompt-presets button{border-radius:999px;padding:10px 14px;text-align:left}.model-callout,.empty-state{border-radius:20px;padding:16px}.model-callout p{margin-top:6px;color:var(--muted)}.error-text{color:#9f1e0f;font-weight:700}.primary-button{margin-top:4px}.quota-hint{margin:-2px 0 0;text-align:center;color:#756246cc;font-size:.78rem;line-height:1.4}.result-panel{min-height:100%;min-width:0}.professional-export-panel{display:grid;align-content:start;min-width:0}.result-card{display:grid;gap:16px;min-width:0}.professional-export-card{display:grid;gap:14px;min-width:0}.professional-export-download-button{margin-top:0;min-width:112px}.professional-export-global-prompt{margin:0;color:var(--muted);font-size:.9rem;line-height:1.6}.professional-export-stage{display:grid;width:100%;justify-items:center;justify-self:stretch;min-width:0;overflow:hidden}.professional-export-viewport{position:relative;margin:0 auto;overflow:hidden;max-width:100%}.professional-export-sheet{background:#f7f2e7;padding:1px;box-shadow:0 20px 48px #4f36071a;transform-origin:top left;will-change:transform}.professional-export-grid{--professional-export-divider-size: 2px;--professional-export-divider-color: rgba(255, 255, 255, .96);width:100%;height:100%;display:grid;gap:var(--professional-export-divider-size);padding:var(--professional-export-divider-size);background:var(--professional-export-divider-color)}.professional-export-cell{position:relative;overflow:hidden;min-width:0;min-height:0;background:linear-gradient(180deg,#f6efe1f0,#f1e9d9fa)}.professional-export-cell.has-image{background:#f7f2e7}.professional-export-cell-image{display:block;width:100%;height:100%;object-fit:cover}.professional-export-cell.has-caption .professional-export-cell-image{height:100%}.professional-export-placeholder{height:100%;display:grid;place-items:center;padding:var(--professional-export-placeholder-padding, 16px);color:#34230dc7;font-size:var(--professional-export-placeholder-font-size, .82rem);line-height:1.55;text-align:center;font-weight:700;word-break:break-word}.professional-export-cell-caption{position:absolute;left:var(--professional-export-caption-inset, 6px);right:var(--professional-export-caption-inset, 6px);bottom:var(--professional-export-caption-inset, 6px);z-index:1;text-align:center;pointer-events:none}.professional-export-cell-caption-text{display:inline;padding:0 calc(var(--professional-export-caption-padding-x, .42em) * .72) calc(var(--professional-export-caption-padding-y, .16em) * .32);border-radius:0;background:#080808bf;box-decoration-break:clone;-webkit-box-decoration-break:clone;color:#fff;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,PingFang SC,Helvetica Neue,sans-serif;font-size:calc(var(--professional-export-caption-font-size, .8rem) * var(--professional-export-caption-font-scale, 1));line-height:1.24;font-weight:800;letter-spacing:-.03em;word-break:break-word;white-space:pre-wrap}.result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.result-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.professional-export-toolbar-actions .storyboard-share-button{flex:0 0 auto}.result-chip{display:inline-flex;align-items:center;min-height:34px;padding:8px 12px;border:1px solid rgba(79,54,7,.12);border-radius:999px;background:#fffcf3d6;color:var(--muted);font-size:.84rem;font-weight:700}.enhance-button{border:1px solid rgba(212,131,0,.24);border-radius:999px;padding:10px 14px;background:#fff7dff5;color:var(--ink);font-weight:800;box-shadow:0 12px 26px #f1b0121f;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}.enhance-button:hover{transform:translateY(-1px);border-color:#d4830070;box-shadow:0 16px 30px #f1b01229}.enhance-button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.result-image-button{border:0;padding:0;background:transparent;display:block;width:100%}.result-variant-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;padding:0;border:0;border-radius:0;background:transparent}.result-variant-button{display:block;flex:0 0 auto;width:clamp(64px,8vw,88px);max-width:88px;border:0;border-radius:0;padding:0;background:transparent;color:var(--ink);text-align:left;transition:background-color .18s ease}.result-variant-button:hover{background:transparent}.result-variant-button.is-active{background:transparent;box-shadow:none}.result-variant-media{position:relative;display:block}.result-variant-image{width:100%;aspect-ratio:1;display:block;object-fit:contain;border-radius:0;border:1px solid rgba(79,54,7,.08);background:#ffffffa8;transition:border-color .18s ease}.result-variant-button:hover .result-variant-image,.result-variant-button.is-active .result-variant-image{border-color:#4f36076b}.result-variant-label{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:#fffcf3f5;box-shadow:0 6px 18px #4f36071f;font-size:.78rem;font-weight:700;color:var(--ink)}.result-image{width:100%;aspect-ratio:1;display:block;object-fit:contain;border:1px solid rgba(79,54,7,.12);background:#ffffff94;cursor:zoom-in}.result-meta{display:grid;gap:8px}.restored-result-card{margin-top:18px;display:grid;gap:14px;border:1px solid rgba(79,54,7,.12);border-radius:22px;padding:16px;background:#fffcf3d6}.restored-result-copy{display:grid;gap:4px}.restored-result-copy strong{color:var(--ink)}.restored-result-copy span{color:var(--muted);font-size:.9rem}.restored-result-image{width:100%;max-height:320px;display:block;object-fit:contain;border:1px solid rgba(79,54,7,.12);background:#ffffff9e}.restored-result-download{margin-top:0}.resource-manager-overlay{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top,rgba(255,220,116,.16),transparent 30%),#2e1f0a8f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.resource-manager-panel{width:min(1120px,100%);height:min(82vh,900px);display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;border:1px solid rgba(79,54,7,.12);border-radius:24px;padding:0;background:linear-gradient(180deg,#fffcf3fa,#fff7dff0);box-shadow:0 28px 80px #311f0338}.resource-manager-windowbar{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid rgba(79,54,7,.1);background:linear-gradient(180deg,#fffbeefa,#fff5dbe0);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.resource-manager-windowbar strong{font-size:.94rem;letter-spacing:.01em;text-align:center}.finder-window-spacer{width:32px;height:32px}.finder-close-button{width:32px;height:32px;border:1px solid rgba(79,54,7,.14);border-radius:10px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#fffbeeb8;color:var(--ink);box-shadow:0 8px 16px #4f36070f;transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease}.finder-close-button:hover{transform:translateY(-1px);border-color:#d483003d;background:#fff7dff0;box-shadow:0 10px 20px #4f36071a}.finder-close-button svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}.finder-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:0;height:100%}.finder-sidebar{display:grid;align-content:start;min-height:0;overflow:auto;gap:18px;padding:18px 14px;border-right:1px solid rgba(79,54,7,.08);background:linear-gradient(180deg,#fffae9eb,#fff6dcc2)}.finder-sidebar-group{display:grid;gap:10px}.finder-sidebar-label{padding:0 10px;color:var(--muted);font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.finder-sidebar-list{display:grid;gap:4px}.finder-sidebar-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left}.finder-sidebar-item:hover{background:#ffffff6b}.finder-sidebar-item.is-active{background:linear-gradient(180deg,#f4c64242,#ffe08833);box-shadow:inset 0 0 0 1px #d4830029}.finder-sidebar-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.finder-sidebar-item strong{color:var(--muted);font-size:.8rem}.finder-browser{min-width:0;min-height:0;display:grid;grid-template-rows:auto 1fr;background:linear-gradient(180deg,#ffffff6b,#ffffff2e)}.finder-browser-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px 14px;border-bottom:1px solid rgba(79,54,7,.08);background:#fff6}.finder-browser-title{display:grid;gap:4px}.finder-browser-title strong{font-size:1rem}.finder-browser-title span,.finder-browser-meta{color:var(--muted);font-size:.82rem}.finder-browser-meta{display:flex;align-items:center;gap:12px}.finder-grid{min-height:0;overflow:auto;display:grid;align-content:start;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:18px 14px;padding:18px}.finder-item{display:grid;position:relative;align-content:start;gap:10px}.finder-item-preview{border:0;padding:0;border-radius:14px;overflow:hidden;background:#ffffffc2;box-shadow:0 8px 24px #4f36070f,inset 0 0 0 1px #4f360714}.finder-item-preview img{width:100%;aspect-ratio:1;display:block;object-fit:contain;background:linear-gradient(180deg,#ffffffeb,#fcf5dce0)}.finder-item-toolbar{position:absolute;top:10px;right:10px;display:flex;flex-wrap:wrap;justify-content:end;gap:6px;opacity:0;transition:opacity .18s ease}.finder-item:hover .finder-item-toolbar,.finder-item:focus-within .finder-item-toolbar{opacity:1}.finder-item-action{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border:0;border-radius:999px;background:#34230dd6;color:#fff8ea;text-decoration:none;font-size:.74rem;font-weight:700;box-shadow:0 8px 16px #34230d2e}.finder-item-action-danger{background:#9f1e0fe0}.finder-item-copy{display:grid;gap:3px;text-align:center}.finder-item-copy strong,.finder-item-copy span,.finder-item-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.finder-item-copy strong{font-size:.84rem;font-weight:700}.finder-item-copy span,.finder-item-copy small{color:var(--muted)}.finder-item-copy span{font-size:.76rem}.finder-item-copy small{font-size:.72rem}.resource-empty-state{min-height:100%;display:grid;place-items:center;text-align:center}.request-busy-overlay{position:fixed;inset:0;z-index:140;pointer-events:auto;background:#fff9eb14;-webkit-backdrop-filter:blur(1.5px) saturate(1.04);backdrop-filter:blur(1.5px) saturate(1.04);animation:request-overlay-breathe 9s ease-in-out infinite alternate}.request-busy-halo{position:absolute;inset:0;background:radial-gradient(52% 26% at 50% -6%,rgba(255,94,159,.34),transparent 72%),radial-gradient(32% 54% at 104% 50%,rgba(103,195,255,.3),transparent 72%),radial-gradient(52% 26% at 50% 106%,rgba(113,213,255,.32),transparent 72%),radial-gradient(32% 54% at -4% 50%,rgba(194,120,255,.28),transparent 72%);filter:saturate(1.1);animation:request-halo-shift 4.8s ease-in-out infinite alternate}.request-busy-center{position:absolute;inset:0;display:grid;place-items:center;padding:24px;pointer-events:none}.request-busy-chip{min-width:min(420px,calc(100vw - 48px));display:grid;gap:12px;padding:16px 18px 14px;border:1px solid rgba(255,255,255,.42);border-radius:22px;background:linear-gradient(180deg,#fffcf3b8,#fff6dc75);box-shadow:0 18px 48px #4f36071f,inset 0 1px #ffffff8f;color:var(--ink);-webkit-backdrop-filter:blur(3.5px);backdrop-filter:blur(3.5px)}.request-busy-row,.request-busy-title{display:flex;align-items:center}.request-busy-row{justify-content:space-between;gap:16px}.request-busy-copy{min-width:0;display:grid;gap:6px}.request-busy-title{gap:12px}.request-busy-chip strong{font-size:.96rem;font-weight:700}.request-busy-meta,.request-busy-countdown{color:var(--muted)}.request-busy-meta{font-size:.84rem}.request-busy-countdown{flex:0 0 auto;font-size:1rem;font-weight:800;font-variant-numeric:tabular-nums}.request-busy-orb{width:12px;height:12px;border-radius:999px;background:linear-gradient(135deg,#ff6aa2,#ffcf59 38%,#8fd3ff 68%,#8d7cff);box-shadow:0 0 0 6px #ffffff24,0 0 24px #9872ff6b;animation:request-orb-pulse 1.8s ease-in-out infinite}.request-busy-progress{position:relative;height:8px;overflow:hidden;border-radius:999px;background:#34230d1a}.request-busy-progress span{position:absolute;inset:0;transform-origin:left center;border-radius:inherit;background:linear-gradient(90deg,#ff83b2,#ffd65f 28%,#8fd6ff 63%,#9b7cff);box-shadow:0 0 22px #9b7cff3d}.request-busy-progress.is-complete span{animation:request-progress-shimmer 1.8s linear infinite}.request-busy-streamtext{margin:0;color:#34230dc7;font-size:.84rem;line-height:1.5}@keyframes request-overlay-breathe{0%{background:#fff9eb0a;-webkit-backdrop-filter:blur(1.25px) saturate(1.02);backdrop-filter:blur(1.25px) saturate(1.02)}50%{background:#fff9eb1a;-webkit-backdrop-filter:blur(2.75px) saturate(1.08);backdrop-filter:blur(2.75px) saturate(1.08)}to{background:#fff9eb29;-webkit-backdrop-filter:blur(4.25px) saturate(1.14);backdrop-filter:blur(4.25px) saturate(1.14)}}@keyframes request-halo-shift{0%{transform:scale(1) rotate(0);opacity:.92}50%{transform:scale(1.03) rotate(.6deg);opacity:1}to{transform:scale(1.01) rotate(-.6deg);opacity:.88}}@keyframes request-progress-shimmer{0%{filter:saturate(.94) brightness(.98);opacity:.82}50%{filter:saturate(1.06) brightness(1.04);opacity:1}to{filter:saturate(.94) brightness(.98);opacity:.82}}@keyframes request-orb-pulse{0%,to{transform:scale(.96);box-shadow:0 0 0 6px #ffffff1f,0 0 20px #9872ff57}50%{transform:scale(1.08);box-shadow:0 0 0 8px #ffffff29,0 0 30px #ff84a56b}}@keyframes storyboard-cell-breathe{0%,to{box-shadow:inset 0 0 0 2px #9ae0d52e,0 10px 22px #72adbb1a}50%{box-shadow:inset 0 0 0 2px #b8f0e847,0 0 0 3px #d5f5ff29,0 14px 28px #7bbdc924}}@keyframes storyboard-cell-spinner-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes storyboard-editor-refresh-aurora-drift{0%{transform:translate3d(-2%,-1%,0) scale(1) rotate(-4deg)}50%{transform:translate3d(2%,1%,0) scale(1.04) rotate(5deg)}to{transform:translate3d(-1%,2%,0) scale(.99) rotate(-3deg)}}@keyframes storyboard-editor-refresh-ring-breathe{0%,to{opacity:.64;filter:blur(20px) saturate(.98)}50%{opacity:.9;filter:blur(26px) saturate(1.06)}}@keyframes storyboard-editor-library-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.image-preview-overlay{position:fixed;inset:0;z-index:120;background:radial-gradient(circle at top,rgba(255,224,121,.08),transparent 26%),#191208f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);overscroll-behavior:contain}.image-preview-topbar,.image-preview-zoombar{position:absolute;left:24px;right:24px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px}.image-preview-topbar{top:20px}.image-preview-zoombar{bottom:24px;justify-content:center}.image-preview-status,.image-preview-actions,.image-preview-zoombar{display:flex;align-items:center;gap:10px}.image-preview-status{color:#fff7df}.image-preview-status strong{font-size:1rem}.image-preview-status span{color:#fff7dfbd;font-size:.88rem;font-weight:700}.image-preview-action{border:1px solid rgba(255,245,221,.14);border-radius:999px;padding:10px 16px;background:#fffaef14;color:#fff7df;text-decoration:none;font-weight:700;box-shadow:0 12px 28px #00000029;transition:transform .18s ease,background-color .18s ease,border-color .18s ease}.image-preview-action:hover{transform:translateY(-1px);background:#fffaef24;border-color:#fff5dd3d}.image-preview-close{background:#ffe4a224}.image-preview-delete{background:#9f1e0f38}.image-preview-stage{position:absolute;inset:84px 24px 92px;display:grid;place-items:center;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.image-preview-stage.is-dragging{cursor:grabbing}.image-preview-media{max-width:none;max-height:none;object-fit:contain;box-shadow:0 28px 90px #0000006b,0 0 0 1px #ffffff14;transform-origin:center center;pointer-events:none}.download-link{width:100%;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;border-radius:999px;padding:14px 18px;font-weight:700;background:linear-gradient(135deg,#ffc216f5,#ffd556eb);box-shadow:0 18px 40px #f1b01238}.image-count-field{flex:0 0 88px;min-width:88px}.admin-gate-layout{grid-template-columns:1fr .95fr}.admin-hero h1{max-width:8ch}.admin-inline-link,.admin-nav-link{color:var(--ink);text-decoration:none}.admin-inline-link{margin-left:8px;font-weight:700}.admin-shell{display:grid;gap:18px}.admin-topbar{padding-block:18px}.admin-topbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.admin-session-meta{min-width:170px;display:grid;gap:2px;padding:10px 14px;border:1px solid rgba(79,54,7,.12);border-radius:16px;background:#fffbeeb8}.admin-session-meta strong{font-size:1.05rem}.admin-session-meta span,.admin-session-meta small{color:var(--muted)}.admin-layout{display:grid;gap:24px}.admin-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-metric-card,.admin-password-card{border:1px solid rgba(79,54,7,.12);background:#fffcf3cc;box-shadow:0 14px 30px #4f36070f}.admin-metric-card{border-radius:22px;padding:18px;display:grid;gap:8px}.admin-metric-card span{color:var(--muted);font-size:.9rem}.admin-metric-card strong{font-size:clamp(1.6rem,3vw,2.4rem);line-height:1}.admin-create-form,.admin-credit-form{display:grid;gap:12px}.admin-create-form{grid-template-columns:minmax(0,1fr) auto}.admin-create-form input,.admin-credit-form input{border:1px solid rgba(90,63,14,.16);background:var(--panel-strong);border-radius:18px;padding:14px 16px;color:var(--ink);outline:none}.admin-create-form input:focus,.admin-credit-form input:focus{border-color:#d483007a;box-shadow:0 0 0 4px #efb21724}.admin-create-form button,.admin-credit-form button{border:0;border-radius:999px;padding:14px 18px;background:linear-gradient(135deg,var(--accent) 0%,#ffcf4c 100%);color:#2a1d09;font-weight:800;box-shadow:0 18px 32px #d483002e}.admin-password-list{display:grid;gap:14px}.admin-password-card{border-radius:24px;padding:18px;display:grid;gap:16px}.admin-password-head,.admin-password-stats{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.admin-password-head>div:first-child,.admin-password-badge{display:grid;gap:4px}.admin-password-head strong,.admin-password-badge strong{font-size:1.1rem}.admin-password-head span,.admin-password-stats span,.admin-password-badge span{color:var(--muted);font-size:.86rem}.admin-password-badge{min-width:96px;padding:10px 12px;border-radius:16px;background:#fff3c8d6;text-align:right}.admin-credit-form{grid-template-columns:140px auto;justify-content:start}.admin-empty-state{margin-top:8px}@media(max-width:1280px){.studio-layout.is-professional-layout{grid-template-columns:1fr}.studio-layout.is-professional-layout>.prompt-panel{order:1}.studio-layout.is-professional-layout>.professional-export-panel{order:2}.professional-export-card,.professional-storyboard-global-panel{gap:12px}.result-toolbar{flex-direction:column;align-items:stretch}.result-toolbar-actions{width:100%;justify-content:stretch}.result-toolbar-actions>*{flex:1 1 auto}.professional-export-download-button{width:100%;min-width:0}.professional-export-toolbar-actions .storyboard-share-button{width:40px;min-width:40px}}@media(max-width:1100px){.gate-layout,.studio-layout:not(.is-professional-layout),.admin-gate-layout{grid-template-columns:1fr}.admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-control-grid{grid-template-columns:1fr}.layout-control-row{align-items:stretch}.topbar-actions{width:auto;margin-left:auto;justify-content:flex-end}.image-preview-topbar{flex-direction:column;align-items:stretch}.finder-layout{grid-template-columns:200px minmax(0,1fr)}.scenario-manager-layout{grid-template-columns:1fr}.scenario-manager-sidebar{border-right:0;border-bottom:1px solid rgba(79,54,7,.08)}.storyboard-editor-layout.has-preview{grid-template-columns:1fr}.finder-browser-toolbar,.resource-manager-windowbar{flex-direction:column;align-items:stretch}.finder-browser-meta{justify-content:space-between}.finder-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.image-preview-status,.image-preview-actions{justify-content:space-between}}@media(max-width:720px){.page-shell{padding:12px}.gate-panel{justify-content:flex-start;gap:16px}.gate-panel,.studio-panel,.status-card{padding:22px;border-radius:24px}.gate-hero{min-height:0;padding:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.gate-hero-image{height:50vh;min-height:0;max-height:50vh;border-radius:24px}.gate-panel-logo{position:static;align-self:flex-start;width:44px;height:44px;border-radius:12px}h1{font-size:clamp(2.2rem,12vw,3.2rem)}.topbar-actions{flex-direction:row;align-items:center;width:auto;margin-left:auto}.resource-manager-trigger{min-height:36px}.resource-manager-trigger-label{display:none}.studio-topbar{padding:12px 16px;margin-bottom:14px}.studio-brand-logo{height:36px;max-width:min(180px,44vw)}.studio-topbar h1{font-size:clamp(1.2rem,7.8vw,2rem)}.section-title{gap:6px;margin-bottom:14px}.section-title h2{font-size:clamp(1.9rem,11vw,2.6rem)}.result-toolbar,.result-toolbar-actions{align-items:stretch}.result-toolbar{flex-direction:column;gap:10px}.result-toolbar-actions{width:100%;justify-content:stretch}.result-toolbar-actions>*{flex:1 1 auto}.professional-export-download-button,.enhance-button{width:100%;min-width:0}.professional-export-toolbar-actions .storyboard-share-button{width:40px;min-width:40px}.result-chip{width:100%;justify-content:center;text-align:center;line-height:1.4;white-space:normal}.prompt-form,.professional-export-card,.professional-storyboard-global-panel,.professional-style-reference-panel,.layout-config-card{gap:12px}.token-hint{min-width:0}.layout-control-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.canvas-custom-size-row{grid-template-columns:1fr}.professional-style-reference-card{grid-template-columns:1fr;gap:12px;padding:12px}.layout-select-field{grid-column:1 / -1;min-width:0;flex-basis:auto}.image-size-field{flex:0 0 auto}.layout-track-field{flex:0 0 auto;min-width:0}.layout-preview-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.layout-preview-controls{width:100%;margin-left:0}.storyboard-style-toggle{grid-template-columns:1fr auto}.storyboard-style-toggle-meta{grid-column:1 / -1;white-space:normal}.compact-range-field{width:100%;min-width:0}.layout-preview-square{width:100%;max-width:100%}.professional-storyboard-global-panel{padding:12px}.professional-style-reference-card{gap:10px;padding:10px}.professional-style-reference-actions{display:flex;justify-content:flex-start}.professional-style-reference-actions .ghost-button,.professional-style-reference-actions .professional-style-reference-action{width:38px;justify-content:center}.storyboard-editor-panel{max-height:calc(100dvh - 24px);border-radius:24px}.prompt-panel.is-focus-mode{min-height:calc(100vh - 88px)}.prompt-form.is-focus-mode{grid-template-rows:auto 1fr auto auto}.panel-mode-switcher{grid-template-columns:1fr}.panel-mode-button{min-height:46px}.storyboard-grid{gap:var(--storyboard-divider-size);padding:var(--storyboard-divider-size)}.storyboard-cell{padding:10px;gap:8px}.storyboard-cell-prompt{font-size:.78rem}.storyboard-editor-overlay,.scenario-manager-overlay{padding:12px}.scenario-manager-panel{height:min(86vh,920px)}.scenario-manager-editor{padding:16px}.scenario-manager-section-header{flex-direction:column;align-items:stretch}.scenario-manager-form-grid{grid-template-columns:1fr}.storyboard-editor-layout{padding:10px 16px 16px}.storyboard-editor-footer{padding:0 16px 16px}.storyboard-editor-windowbar{padding:12px 14px}.storyboard-editor-windowbar{grid-template-columns:32px minmax(0,1fr) 32px;align-items:start}.storyboard-editor-pager{grid-template-columns:1fr 1fr;gap:10px}.storyboard-editor-nav-button{flex:1 1 0;justify-content:center}.storyboard-editor-pager-status{grid-column:1 / -1;order:-1}.storyboard-editor-windowbar strong{font-size:.96rem;line-height:1.4;text-align:center}.reference-grid{--reference-item-width: clamp(84px, 24vw, 96px)}.resource-manager-overlay{padding:12px}.resource-manager-panel{border-radius:24px;max-height:min(88vh,900px)}.finder-layout{grid-template-columns:1fr}.finder-sidebar{border-right:0;border-bottom:1px solid rgba(79,54,7,.08)}.finder-sidebar-list{grid-template-columns:repeat(2,minmax(0,1fr))}.finder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.finder-item-action{min-height:26px;padding-inline:8px}.finder-item-copy strong{font-size:.78rem}.finder-item-copy span,.finder-item-copy small{font-size:.7rem}.admin-topbar-actions,.admin-password-head,.admin-password-stats{align-items:stretch}.admin-summary-grid,.admin-create-form,.admin-credit-form{grid-template-columns:1fr}.admin-password-badge{text-align:left}.request-busy-chip{min-width:0;width:min(100%,420px)}.request-busy-row{align-items:start;gap:12px}.request-busy-title{align-items:start}.request-busy-countdown{font-size:.92rem}.image-preview-topbar,.image-preview-zoombar{left:12px;right:12px}.image-preview-topbar{top:12px}.image-preview-stage{inset:116px 8px 88px}.image-preview-actions{flex-wrap:wrap}.image-preview-action{flex:1 1 auto;justify-content:center;text-align:center}}
