.mg-page{color:var(--foreground);font-family:var(--font-sans);line-height:1.5}html:has(.mg-works-page){scroll-behavior:auto}.mg-page *{box-sizing:border-box}.mg-page button{cursor:pointer}.mg-page button:disabled{cursor:not-allowed}.mg-page :focus-visible{outline:2px solid var(--ring);outline-offset:4px}.mg-page fieldset{border:0;min-width:0;margin:0;padding:0}.mg-studio{max-width:1280px;margin:0 auto;padding:28px 24px 64px;scroll-margin-top:80px}.mg-back{color:var(--muted-foreground);align-items:center;gap:7px;margin-bottom:22px;font-size:12px;display:inline-flex}.mg-section-heading{justify-content:space-between;align-items:end;gap:24px;margin-bottom:20px;display:flex}.mg-section-heading h1{letter-spacing:-.035em;margin-top:12px;font-size:32px;font-weight:500}.mg-local-badge{color:var(--primary);background:color-mix(in oklch, var(--primary) 10%, transparent);font:10px var(--font-mono);white-space:nowrap;border-radius:99px;padding:5px 10px}.mg-journey{color:var(--muted-foreground);flex-wrap:wrap;gap:24px;margin:0 0 24px;padding:0;font-size:12px;list-style:none;display:flex}.mg-journey li{align-items:center;gap:8px;display:flex}.mg-journey li>span{border:1px solid var(--border);width:24px;height:24px;font:10px var(--font-mono);border-radius:50%;place-items:center;display:grid}.mg-journey [aria-current=step]{color:var(--primary)}.mg-journey [aria-current=step]>span{border-color:var(--primary);background:var(--accent)}.mg-workspace{grid-template-columns:1.05fr 1fr;align-items:start;gap:24px;display:grid}.mg-controls,.mg-output{border:1px solid var(--border);background:var(--card);border-radius:22px;min-width:0}.mg-controls{padding:24px;box-shadow:0 16px 60px #0000000d}.mg-mode-group{margin-bottom:22px!important}.mg-mode-group legend{font:10px var(--font-mono);color:var(--muted-foreground);margin-bottom:10px}.mg-modes{border:1px solid var(--border);background:var(--background);border-radius:13px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;display:grid}.mg-modes label,.mg-styles label{cursor:pointer;min-width:0;position:relative}.mg-modes label{color:var(--muted-foreground);border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;padding:9px 6px;transition:background .18s,color .18s,border-color .18s;display:flex}.mg-modes strong{white-space:nowrap;font-size:13px;font-weight:500}.mg-mode-icon{display:flex}.mg-modes label:hover{color:var(--foreground);background:var(--secondary)}.mg-modes label.selected{color:var(--foreground);background:var(--card);border-color:color-mix(in oklch, var(--primary) 32%, var(--border));box-shadow:0 2px 8px #0002}.mg-modes .selected .mg-mode-icon{color:var(--primary)}.mg-modes input,.mg-styles input{opacity:0;width:1px;height:1px;position:absolute}:is(.mg-modes label:has(:focus-visible),.mg-styles label:has(:focus-visible)){outline:2px solid var(--ring);outline-offset:3px}.mg-controls fieldset:disabled label{cursor:not-allowed;opacity:.55}.mg-upload-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.mg-upload-heading h3{align-items:center;gap:10px;font-size:13px;font-weight:500;display:flex}.mg-upload-heading h3>span{font:9px var(--font-mono);color:var(--muted-foreground);letter-spacing:.12em}.mg-text-button{color:var(--muted-foreground);background:0 0;border:0;align-items:center;gap:5px;padding:0;font-size:11px;display:inline-flex}.mg-text-button:hover{color:var(--foreground)}.mg-dropzone{border:1px dashed color-mix(in oklch, var(--primary) 27%, var(--border));background:radial-gradient(ellipse at 50% 35%, color-mix(in oklch, var(--primary) 9%, transparent), transparent 65%), var(--background);border-radius:17px;transition:border-color .18s,background .18s,box-shadow .18s;position:relative;overflow:hidden}.mg-dropzone:not(.has-asset):hover,.mg-dropzone:focus-within,.mg-dropzone.dragging{border-color:var(--primary);box-shadow:inset 0 0 0 1px color-mix(in oklch, var(--primary) 25%, transparent)}.mg-dropzone.dragging{background:var(--accent)}#mg-upload{display:none}.mg-upload-empty{width:100%;min-height:240px;color:var(--foreground);background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:24px 12px;display:flex}.mg-upload-empty:disabled{opacity:.65}.mg-upload-empty strong{letter-spacing:-.02em;font-size:17px;font-weight:500}.mg-upload-art{width:76px;height:65px;margin-bottom:5px;transition:transform .2s;display:block;position:relative}.mg-art-back,.mg-art-front{border:1px solid color-mix(in oklch, var(--primary) 32%, var(--border));background:var(--card);border-radius:10px;width:48px;height:58px;position:absolute}.mg-art-back{background:color-mix(in oklch, var(--primary) 10%, var(--card));top:0;left:8px;transform:rotate(-13deg)}.mg-art-front{color:var(--primary);place-items:center;display:grid;top:5px;right:7px;transform:rotate(9deg);box-shadow:0 8px 24px #0002}.mg-art-plus{width:23px;height:23px;color:var(--primary-foreground);background:var(--primary);border:3px solid var(--card);border-radius:50%;place-items:center;font-size:14px;display:grid;position:absolute;bottom:-4px;right:0}.mg-upload-empty:hover .mg-upload-art{transform:translateY(-3px)rotate(-3deg)}.mg-upload-action{color:var(--primary);font-size:12px}.mg-upload-action>span{color:var(--muted-foreground);margin-left:8px}.mg-upload-empty small{color:var(--muted-foreground);margin-top:4px;font-size:10px}.mg-source-preview{position:relative}.mg-source-preview>img,.mg-source-preview>video{object-fit:contain;background:#090b10;width:100%;height:240px;display:block}.mg-asset-toolbar{border-top:1px solid var(--border);background:var(--card);justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.mg-asset-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted-foreground);align-items:center;gap:7px;font-size:11px;display:flex;overflow:hidden}.mg-ready-dot{background:#75bca2;border-radius:50%;flex:none;width:5px;height:5px}.mg-upload-foot{color:var(--muted-foreground);justify-content:space-between;align-items:center;gap:8px;margin:10px 0 24px;font-size:10px;display:flex}.mg-upload-foot>span{align-items:center;gap:5px;display:inline-flex}.mg-settings-heading{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:16px;display:flex}.mg-settings-heading h3{font-size:16px;font-weight:500}.mg-settings-heading>span{font:8px var(--font-mono);letter-spacing:.12em;color:var(--muted-foreground)}.mg-options-group>fieldset>legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.mg-styles{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.mg-styles label{border:1px solid var(--border);border-radius:12px;padding:5px;transition:border-color .18s,background .18s,transform .18s}.mg-styles label:hover{border-color:var(--muted-foreground);transform:translateY(-2px)}.mg-styles label.selected{border-color:var(--primary);background:color-mix(in oklch, var(--primary) 7%, var(--card))}.mg-style-art{border-radius:7px;place-items:center;height:100px;display:grid;position:relative;overflow:hidden}.mg-style-follow{color:#b9c3e3;background:radial-gradient(circle at 65% 20%,#6878a644,#0000 60%),linear-gradient(135deg,#282e40,#151922)}.mg-style-realistic{background:radial-gradient(at 65% 20%,#b3ae8b77,#0000 60%),linear-gradient(130deg,#293e3d,#121c1e)}.mg-style-realistic>span{background:linear-gradient(110deg,#d8d3b9,#9d9b89 40%,#454e45);border-radius:48% 48% 30% 30%;width:36px;height:53px;transform:rotate(-12deg)translateY(14px);box-shadow:10px 9px 15px #0007}.mg-style-anime{background:linear-gradient(130deg,#3c3d66,#28233e)}.mg-style-anime>span{clip-path:polygon(26% 0,80% 4%,100% 100%,75% 81%,39% 85%,0 100%,10% 25%);background:linear-gradient(125deg,#ded7f0 0 45%,#9b98bc 45% 60%,#b4adc9 60%);width:44px;height:58px;transform:rotate(12deg)translateY(12px)}.mg-style-caption{justify-content:space-between;align-items:center;gap:3px;padding:9px 3px 5px;display:flex}.mg-style-caption strong{white-space:nowrap;font-size:12px;font-weight:500}.mg-radio-dot{border:1px solid var(--border);border-radius:50%;flex:none;place-items:center;width:13px;height:13px;display:grid}.selected .mg-radio-dot{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}.mg-setting-help{color:var(--muted-foreground);margin-top:12px;font-size:12px}.mg-setting-help>span{opacity:.75;font-size:10px}.mg-submit-group{border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.mg-submit-context{color:var(--muted-foreground);justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-size:10px;display:flex}.mg-submit-context>span:first-child{align-items:center;gap:5px;display:flex}.mg-submit-context>span:last-child{font-family:var(--font-mono)}.mg-summary{display:none}.mg-submit{width:100%;height:44px;box-shadow:0 4px 16px color-mix(in oklch, var(--primary) 12%, transparent);border-radius:12px}.mg-submit svg:last-child{margin-left:auto}.mg-submit svg:first-child{margin-right:auto}.mg-submit:disabled{opacity:.5;box-shadow:none}.mg-submit-hint{color:var(--muted-foreground);text-align:center;margin-top:8px;font-size:10px}.mg-feedback:not(:empty){margin-top:12px}.mg-feedback [role=alert]{border:1px solid color-mix(in oklch, var(--destructive) 25%, transparent);background:color-mix(in oklch, var(--destructive) 7%, transparent);color:var(--destructive);border-radius:10px;padding:10px 12px;font-size:12px}.mg-input-notice{color:var(--muted-foreground);margin-bottom:8px;font-size:11px}.mg-debug{color:var(--muted-foreground);margin-top:12px;font-size:10px}.mg-debug summary{cursor:pointer}.mg-debug label{align-items:center;gap:8px;margin-top:10px;display:flex}.mg-debug p{margin-top:6px}.mg-remix{border:1px solid color-mix(in oklch, var(--primary) 35%, var(--border));background:color-mix(in oklch, var(--primary) 5%, var(--card));border-radius:14px;align-items:center;gap:14px;margin-bottom:24px;padding:14px;display:flex}.mg-remix img{object-fit:cover;border-radius:8px;width:54px;height:70px}.mg-remix h2{margin:2px 0;font-size:17px;font-weight:500}.mg-remix p{color:var(--muted-foreground);font-size:11px}.mg-remix .mg-remix-label{color:var(--primary)}.mg-remix button{margin-top:7px}.mg-dropzone.has-asset{border-style:solid}.mg-asset-name>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mg-asset-toolbar button{flex-shrink:0}.mg-media-label{z-index:1;font:9px var(--font-mono);color:#e8eaf4;pointer-events:none;background:#111523dc;border:1px solid #ffffff20;border-radius:99px;align-items:center;gap:5px;padding:5px 9px;display:inline-flex;position:absolute;top:12px;left:12px}.mg-output{background:radial-gradient(ellipse at 95% 0%, color-mix(in oklch,var(--primary) 7%,transparent),transparent 55%),var(--card);padding:24px;scroll-margin-top:88px;position:sticky;top:88px}.mg-output-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.mg-output-eyebrow{color:var(--muted-foreground);font:8px var(--font-mono);letter-spacing:.15em;margin-bottom:7px;display:block}.mg-output-heading h2{letter-spacing:-.025em;font-size:17px;font-weight:500}.mg-output-tag{border:1px solid color-mix(in oklch,var(--primary) 25%,var(--border));color:var(--primary);font:9px var(--font-mono);border-radius:99px;flex-shrink:0;align-items:center;gap:6px;padding:5px 9px;display:inline-flex}.mg-result-media{border:1px solid var(--border);background:#090b10;border-radius:16px;align-self:start;position:relative;overflow:hidden}.mg-result-media>img,.mg-result-media>video{object-fit:contain;width:100%;height:280px;display:block}.mg-media-caption{border-top:1px solid var(--border);background:var(--card);color:var(--muted-foreground);justify-content:space-between;gap:10px;padding:11px 14px;font-size:10px;display:flex}.mg-media-caption>span:last-child{font:9px var(--font-mono);letter-spacing:.1em}.mg-result-info{min-width:0;padding-top:22px}.mg-state-icon{border:1px solid color-mix(in oklch,var(--primary) 25%,var(--border));background:color-mix(in oklch,var(--primary) 8%,transparent);width:38px;height:38px;color:var(--primary);border-radius:12px;place-items:center;margin-bottom:14px;display:grid}.mg-state-error{color:#d9ad75;background:#d9ad7510;border-color:#d9ad7533}.mg-result-info h3{letter-spacing:-.03em;font-size:20px;font-weight:500;line-height:1.5}.mg-result-settings{flex-wrap:wrap;gap:6px;margin:14px 0;display:flex}.mg-result-settings span{border:1px solid var(--border);background:var(--background);color:var(--muted-foreground);border-radius:7px;padding:5px 9px;font-size:10px}.mg-result-source{color:var(--muted-foreground);margin-bottom:12px;font-size:11px}.mg-result-note{color:var(--muted-foreground);margin:14px 0;font-size:12px;line-height:1.8}.mg-result-primary,.mg-result-secondary{border-radius:11px;width:100%;height:42px;margin-top:9px}.mg-result-info small{color:var(--muted-foreground);margin-top:10px;font-size:10px;line-height:1.6;display:block}.mg-output-footer{border-top:1px solid var(--border);color:var(--muted-foreground);justify-content:center;align-items:center;gap:7px;margin-top:20px;padding-top:16px;font-size:10px;display:flex}.mg-media-processing>img,.mg-media-processing>video{opacity:.35;filter:blur(3px)}.mg-processing-overlay{color:#d6dfff;flex-direction:column;justify-content:center;align-items:center;gap:18px;font-size:11px;display:flex;position:absolute;inset:0 0 35px}.mg-processing-orbit{background:#466cff20;border:1px solid #718bfb80;border-radius:24px;place-items:center;width:76px;height:76px;display:grid;box-shadow:0 0 50px #466cff25}.mg-progress-heading{color:var(--muted-foreground);justify-content:space-between;align-items:center;margin-top:24px;font-size:11px;display:flex}.mg-progress-heading strong{color:var(--primary);font:16px var(--font-mono)}.mg-progress{appearance:none;background:var(--secondary);width:100%;height:5px;accent-color:var(--primary);border:0;border-radius:99px;margin:12px 0 16px;display:block;overflow:hidden}.mg-progress::-webkit-progress-bar{background:var(--secondary)}.mg-progress::-webkit-progress-value{background:var(--primary);border-radius:99px;transition:width .4s}.mg-progress::-moz-progress-bar{background:var(--primary);border-radius:99px}.mg-progress-steps{color:var(--muted-foreground);justify-content:space-between;gap:8px;padding:0;font-size:10px;list-style:none;display:flex}.mg-progress-steps li{align-items:center;gap:5px;display:flex}.mg-progress-steps li>span{border:1px solid var(--border);width:18px;height:18px;font:9px var(--font-mono);border-radius:50%;place-items:center;display:grid}.mg-progress-steps [aria-current=step],.mg-progress-steps .complete{color:var(--primary)}.mg-progress-steps [aria-current=step]>span,.mg-progress-steps .complete>span{border-color:var(--primary);background:var(--accent)}.mg-wait{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:420px;padding:20px;display:flex}.mg-wait h3{margin-top:20px;font-size:18px;font-weight:500}.mg-wait p{color:var(--muted-foreground);margin-top:12px;font-size:13px}.mg-empty-frame{border:1px dashed var(--border);width:170px;height:200px;color:var(--muted-foreground);border-radius:22px;flex-direction:column;justify-content:center;align-items:center;gap:22px;display:flex}.mg-empty-frame span{font:8px var(--font-mono);letter-spacing:2px}.mg-reference{width:100%;max-width:260px;position:relative}.mg-reference video,.mg-reference>img{object-fit:cover;background:var(--background);border-radius:14px;width:100%;height:300px}.mg-reference>span{pointer-events:none;color:#fff;background:#000a;border-radius:99px;padding:4px 9px;font-size:10px;position:absolute;top:10px;left:10px}.mg-wait>span{font:12px var(--font-mono);color:var(--muted-foreground);margin-top:12px}.mg-spin{animation:1s linear infinite mg-spin}@keyframes mg-spin{to{transform:rotate(360deg)}}.mg-embedded .mg-studio{max-width:none;padding:0}.mg-embedded .mg-workspace{grid-template-columns:1fr;gap:16px}.mg-embedded .mg-controls{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"modes modes""input options""input submit";gap:0 32px;padding:0 24px 22px;display:grid;overflow:hidden}.mg-embedded .mg-mode-group{border-bottom:1px solid var(--border);background:color-mix(in oklch, var(--secondary) 40%, transparent);grid-area:modes;padding:12px 24px;margin:0 -24px 20px!important}.mg-embedded .mg-mode-group legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.mg-embedded .mg-modes{max-width:460px;padding:3px}.mg-embedded .mg-input-group{grid-area:input;min-width:0}.mg-embedded .mg-options-group{grid-area:options;min-width:0}.mg-embedded .mg-submit-group{grid-area:submit;min-width:0;margin-top:14px;padding-top:12px}.mg-embedded .mg-upload-foot{margin-bottom:0}.mg-embedded .mg-output{position:static}.mg-embedded .mg-result{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;display:grid}.mg-embedded .mg-result-info{padding-top:0}.mg-embedded .mg-wait{min-height:180px}.mg-embedded .mg-submit-hint{display:none}.mg-embedded .mg-style-art{height:76px}.mg-embedded .mg-settings-heading{margin-bottom:12px}.mg-embedded .mg-upload-empty{min-height:190px}.mg-embedded .mg-source-preview>img,.mg-embedded .mg-source-preview>video{height:216px}@media (width<=760px){.mg-studio{padding:24px 16px 40px}.mg-workspace{grid-template-columns:1fr}.mg-controls,.mg-output{padding:18px}.mg-section-heading{display:block}.mg-section-heading h1{font-size:26px}.mg-local-badge{margin-top:12px;display:inline-block}.mg-journey{gap:16px;font-size:11px}.mg-output{position:static}.mg-wait{min-height:300px;padding:16px 0}.mg-embedded .mg-controls{column-gap:20px;padding-left:18px;padding-right:18px}.mg-embedded .mg-mode-group{padding-left:18px;padding-right:18px;margin-left:-18px!important;margin-right:-18px!important}.mg-modes strong{font-size:12px}.mg-modes label{gap:5px}.mg-settings-heading>span{display:none}}@media (width<=640px){.mg-embedded .mg-controls{grid-template-columns:1fr;grid-template-areas:"modes""input""options""submit";padding:0 14px 16px}.mg-embedded .mg-mode-group{padding:10px;margin:0 -14px 14px!important}.mg-embedded .mg-modes{max-width:none}.mg-mode-icon svg{width:14px;height:14px}.mg-modes label{gap:4px;padding:8px 2px}.mg-embedded .mg-upload-empty{gap:5px;min-height:148px;padding:14px 8px}.mg-embedded .mg-upload-art{height:45px;margin-top:-4px;margin-bottom:0;transform:scale(.7)}.mg-embedded .mg-upload-empty strong{font-size:15px}.mg-embedded .mg-upload-empty small{margin-top:0;font-size:9px}.mg-embedded .mg-source-preview>img,.mg-embedded .mg-source-preview>video{height:210px}.mg-embedded .mg-upload-heading h3>span{display:none}.mg-upload-foot{flex-wrap:wrap;font-size:9px}.mg-upload-foot .mg-text-button{font-size:10px}.mg-embedded .mg-options-group{margin-top:18px}.mg-settings-heading{margin-bottom:10px}.mg-settings-heading h3{font-size:14px}.mg-styles{gap:7px}.mg-style-art,.mg-embedded .mg-style-art{height:64px}.mg-style-caption{padding:7px 1px 3px}.mg-style-caption strong{font-size:11px}.mg-radio-dot{width:11px;height:11px}.mg-setting-help{margin-top:8px;font-size:10px}.mg-setting-help>span{display:none}.mg-embedded .mg-result{grid-template-columns:1fr;gap:16px}}@media (prefers-reduced-motion:reduce){.mg-spin{animation:none}.mg-progress::-webkit-progress-value{transition:none}.mg-page *,.mg-upload-empty:hover .mg-upload-art,.mg-styles label:hover{transition:none;transform:none}}@media (width<=640px){.mg-embedded .mg-upload-empty{text-align:left;grid-template-columns:60px minmax(0,1fr);gap:4px 12px;min-height:106px;padding:16px 12px;display:grid}.mg-embedded .mg-upload-art{grid-row:span 3;width:60px;height:65px;margin:0;transform:scale(.72)}.mg-embedded .mg-upload-empty strong{align-self:end;font-size:14px}.mg-embedded .mg-upload-action{font-size:10px}.mg-embedded .mg-upload-action>span{margin-left:5px}.mg-embedded .mg-upload-empty small{align-self:start}.mg-embedded .mg-settings-heading{margin-bottom:8px}.mg-embedded .mg-settings-heading h3{font-size:12px}.mg-embedded .mg-setting-help{display:none}.mg-embedded .mg-submit-group{margin-top:12px;padding-top:10px}.mg-output-heading{align-items:start}.mg-output-heading h2{font-size:15px}.mg-output-tag{padding:5px 7px;font-size:8px}.mg-result-media>img,.mg-result-media>video{height:220px}.mg-result-info h3{font-size:18px}.mg-state-icon{display:none}.mg-progress-heading{margin-top:16px}}
