/* Depth Studio — a local creative lab; controls and rendering remain unchanged. */
:root{color-scheme:dark;--bg:#0b0d19;--panel:#121626;--border:#262c44;--text:#e8eaf8;--muted:#868da9;--dim:#5d6585;--accent:#a49aff;--font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}html{scroll-padding-top:22px}body{background:radial-gradient(ellipse at 10% 0%,#211e4640,transparent 43%),radial-gradient(ellipse at 100% 25%,#1b315329,transparent 38%),#0b0d19;-webkit-font-smoothing:antialiased}button,a{transition:background-color .2s,color .2s,border-color .2s,transform .2s}button:disabled{cursor:not-allowed}button:hover:not(:disabled){transform:translateY(-1px)}button:active:not(:disabled){transform:translateY(0)}:is(button,a,input,select):focus-visible{outline:2px solid #bcb1ff;outline-offset:4px}.skip-link{position:fixed;left:16px;top:-100px;background:#b7aaff;color:#1a1732;padding:13px 18px;border-radius:10px;z-index:100}.skip-link:focus{top:12px}.topbar{height:84px;padding:0 max(3.5%,calc((100% - 1480px)/2));background:#0d101c99;border-color:#252a42;gap:25px}.brand-mark{background:linear-gradient(135deg,#b7a7ff,#7779dc);color:#171d36;box-shadow:0 5px 25px #8e79fb18;width:38px;height:40px;border:1px solid #d1c2ff50;border-radius:11px}.brand b{font-size:24px;letter-spacing:-1.1px;font-weight:650}.brand b span{color:#9c9ebc;font-weight:350}.brand-divider{background:#333650;margin-inline:12px}.workspace-label{font-size:11px;letter-spacing:.08em;color:#7c84a7}.header-right{gap:25px}.header-mode{font:9px ui-monospace,monospace;letter-spacing:.16em;color:#647091}.header-mode>span{color:#9b91de;margin:0 8px}.local-label{font-size:10px;letter-spacing:.03em;color:#a4abd0;padding:7px 12px;border:1px solid #30334f;border-radius:100px;background:#191d31}.local-label i{background:#8fd4b5;box-shadow:0 0 0 3px #8fd4b50a;width:5px;height:5px}main{max-width:1536px;padding:42px 3.5% 0}.intro{position:relative;display:grid;grid-template-columns:1.05fr 1fr;gap:40px;margin-bottom:36px;align-items:center}.intro-copy{padding:7px 0}.eyebrow{font-size:9px;color:#9b91c1;letter-spacing:.22em}.eyebrow>span{background:#a195e7;width:25px}.intro h1{font-size:clamp(2.3rem,1.15rem + 2.6vw,3.65rem);line-height:1.22;font-weight:580;letter-spacing:-.055em;margin:21px 0 17px}.intro h1>span{color:#b4a9ff}.intro p{font-size:12px;color:#838aa6;line-height:1.9}.intro-tags{display:flex;gap:8px;margin-top:21px}.intro-tags span{font-size:9px;letter-spacing:.02em;border:1px solid #2a304b;border-radius:5px;background:#15192a;color:#747f9f;padding:5px 9px}.intro-side{display:flex;flex-direction:column;gap:9px;align-self:stretch;justify-content:flex-end;min-width:0}.depth-sculpture{position:relative;min-height:155px;display:flex;align-items:end;padding-top:22px;isolation:isolate}.depth-sculpture>svg{width:100%;height:auto;aspect-ratio:560/210;max-height:190px;stroke:none}.sculpture-caption{position:absolute;right:15px;top:0;color:#505978;font:7px ui-monospace,monospace;letter-spacing:.17em}.model-status{width:100%;min-width:0;background:linear-gradient(110deg,#191b32,#141b2b);border:1px solid #2e324c;border-radius:12px;padding:15px 18px;gap:13px}.status-dot{width:7px;height:7px;background:#9c92ef}.model-status strong{font-size:11px;font-weight:500;color:#b9bed9}.model-status small{font-size:9px;line-height:1.7;color:#646f92;max-width:420px}.model-badge{background:#292641;color:#aa9de3;font-size:8px;border:1px solid #454064;padding:4px 8px;border-radius:5px;letter-spacing:.07em}
.workspace{grid-template-columns:354px minmax(0,1fr);gap:23px;align-items:start}.panel{background:#121626;border:1px solid #2a2f48;border-radius:17px;box-shadow:0 15px 35px -27px #000a}.controls{background:linear-gradient(140deg,#191c30,#131727 65%)}.section-heading{height:69px;padding:0 23px;background:#1c20321f;border-color:#292d45;gap:12px}.section-heading h2{font-size:13px;letter-spacing:.02em;font-weight:550;color:#c4c9e5}.step{background:#22243c;border:1px solid #3b3b5e;border-radius:7px;width:27px;height:27px;font-size:10px;color:#a399e6}.tiny-label{font-size:8px;color:#535e7d;letter-spacing:.13em}#generation-form{padding:24px}.field-heading{font-size:11px;color:#a7aecb;margin-bottom:11px}.field-heading>span{font-size:9px;color:#596788}.field-heading label{font-weight:500}select,#processing-mode{border:1px solid #313853;background:#12182b;color:#9ea9cd;border-radius:8px;font-size:11px;height:42px;padding:0 12px;min-width:0}#processing-mode{font-size:11px;height:43px}.processing-note{color:#677496;font-size:10px;line-height:1.9;margin:10px 0 24px}.dropzone{background:radial-gradient(ellipse at top,#3d356133,transparent 75%),#111628;border:1px dashed #575070;border-radius:12px;padding:24px 10px 21px;color:#b6bcd7;transition:background-color .2s,border-color .2s,transform .2s}.dropzone:hover,.dropzone.dragover{background:#211e3a;border-color:#b0a0ed}.dropzone.selected{background:#201f3a;border-color:#7166a0}.upload-icon{width:43px;height:43px;margin-bottom:14px;background:#302b4b;border:1px solid #53476f;border-radius:12px;color:#b5a0f3}.upload-icon svg{width:20px;height:20px}.dropzone strong{font-size:11px;font-weight:450;line-height:1.6}.dropzone>span:nth-of-type(2){color:#5e698b;font-size:9px;margin-top:7px}.choose-file{background:#26263f;border:1px solid #3b3c5d;color:#a39cc7;font-size:10px;border-radius:6px;padding:6px 13px;gap:23px;margin-top:17px}.example-button{border-color:#2a3351;background:#182036;color:#aab5d5;border-radius:9px;padding:10px;gap:11px;margin-top:12px}.example-button:hover{border-color:#626791}.example-thumb{width:40px;height:38px;border-radius:6px}.example-button strong{font-size:10px;font-weight:450}.example-button small{color:#606f96;font-size:9px}.example-arrow{color:#737eab}.control-divider{background:#2a2d46;margin:25px 0 23px}.quality-picker{background:#101626;border:1px solid #30364f;border-radius:9px;padding:4px;gap:3px}.quality-picker label>span{font-size:11px;color:#68789a;border-radius:6px;padding:8px 4px}.quality-picker small{font-size:8px;color:#4b5a7b;margin-top:3px}.quality-picker input:checked+span{color:#d2c9fa;border-color:#584c82;background:#3a3057}.quality-picker input:checked+span small{color:#a290d1}.field-row{gap:12px;margin-top:22px}.field-row label{color:#a3aecb;font-size:10px;margin-bottom:10px}.palette-heading{margin-top:23px}.palette-picker{gap:8px}.palette-picker label>span{font-size:10px;color:#7887a9;border-color:#303952;border-radius:8px;padding:10px 4px;gap:7px;background:#141c2e}.palette-picker input:checked+span{color:#d1c5ee;border-color:#8065a6;background:#302944}.palette-picker i{width:16px;height:16px;border-radius:4px}.mode-note{color:#7976a2;margin:22px 0;gap:9px}.mode-note p{color:#9299b9;font-size:10px}.mode-note small{color:#536181;font-size:9px;line-height:1.7;max-width:200px}.mode-note>span{border-color:#393952;color:#6f789d;font-size:8px}.generate-button{background:linear-gradient(115deg,#bca9f7,#888df1);color:#201e3f;border:1px solid #c2b9ff30;border-radius:9px;min-height:48px;padding:13px 15px;font-size:12px;font-weight:650;box-shadow:0 5px 22px #9b89f013}.generate-button:hover:not(:disabled){background:linear-gradient(115deg,#ccbbff,#a1a1ff);box-shadow:0 6px 24px #9b89f026}.generate-button:disabled{opacity:.4}.local-note{color:#546687;font-size:8px;line-height:1.9;margin-top:13px;letter-spacing:.025em}
.output-panel{background:linear-gradient(150deg,#161a2b,#121727)}.preview-status{font-size:9px;border:1px solid #3c3c60;background:#25243f;color:#a99edc;padding:4px 10px;border-radius:100px}.preview-toolbar{margin:22px 24px 18px;gap:10px}.tabs{padding:4px;background:#111628;border:1px solid #2b334d;border-radius:8px;gap:4px}.tabs button{padding:8px 13px;font-size:10px;border-radius:5px;color:#707fa6;min-height:32px}.tabs button.active{background:#343153;color:#c8b8f1}.tabs button:disabled{opacity:.55}.preview-hint{color:#495b82;font-size:7px;letter-spacing:.16em}.preview-stage{min-height:340px;aspect-ratio:16/10;background-color:#0d1324;background-image:radial-gradient(ellipse at 50% 30%,#4b3b6d23,transparent 70%),radial-gradient(#47578038 .7px,transparent .7px);background-size:auto,19px 19px;border:1px solid #2a3452;border-radius:12px;margin:0 24px;position:relative}.stage-corner{color:#4b4a77;width:15px;height:15px}.empty-preview{padding:30px 24px;max-width:100%}.depth-art{width:145px;height:120px;margin:0 auto 26px;position:relative}.depth-art div{width:97px;height:75px;left:24px;top:4px;transform:rotate(-29deg) skew(15deg,10deg);border-color:#8e7cbd;border-radius:12px;background:linear-gradient(120deg,#7661c524,#5366a422);box-shadow:inset 0 0 24px #b8a4ff09}.depth-art div:nth-child(2){top:25px;border-color:#5f598c;background:#3b3b6d13}.depth-art div:nth-child(3){top:46px;border-color:#39466b;background:#29345c20}.depth-art>svg{left:60px;top:26px;width:29px;height:29px;color:#c2adf7;stroke-width:1}.empty-preview h3{color:#abb3d7;font-size:18px;letter-spacing:.01em;font-weight:450;margin-bottom:14px}.empty-preview p{color:#566b92;font-size:11px;line-height:2}.empty-tags{gap:8px;margin-top:23px}.empty-tags span{background:#171d33;border-color:#2e3658;color:#6e80a7;border-radius:5px;padding:4px 9px;font-size:8px}#result-video{max-height:560px;background:#080e1b;aspect-ratio:16/9;object-fit:contain}.preview-stage.has-video{background:#080e1b}.preview-overlay span{color:#ccd1eb;font-size:8px}.progress-area{background:#24243e;border-color:#49436a;padding:17px;border-radius:10px;margin:20px 24px 0}.progress-text strong{font-size:11px;color:#c2b4ee}.progress-text>span{color:#aa9add}.progress-bottom{color:#716a9d;font-size:9px;line-height:1.7}.progress-bottom button{color:#b6a9db;min-height:30px;font-size:10px}.progress-area progress{height:5px;background:#3a3655;margin:13px 0}.progress-area progress::-webkit-progress-bar{background:#3a3655}.progress-area progress::-webkit-progress-value{background:linear-gradient(90deg,#816cce,#bbacf0)}.progress-area progress::-moz-progress-bar{background:#a49aff}.notice{margin:20px 24px 0;background:#382c36;border-color:#694858;color:#d4a9bd;font-size:11px;line-height:1.7}.result-footer{padding:23px 24px;gap:12px}.result-meta{color:#657ca4;font-size:10px;line-height:1.7}.result-meta svg{color:#8f86b7}.result-meta>span{overflow-wrap:anywhere}.download-button{color:#b3a4e2;background:#27233e;border:1px solid #544975;border-radius:7px;font-size:10px;padding:10px 14px;min-height:37px}.download-button:hover{background:#3b3159}.download-button.disabled{opacity:.3}.creative-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;padding:23px 24px 25px;border-top:1px solid #252d47;background:#11182a66}.creative-notes>div{position:relative;padding-left:14px;border-left:1px solid #393451}.creative-notes span{display:block;font:7px ui-monospace,monospace;letter-spacing:.07em;color:#635a8b;margin-bottom:13px}.creative-notes strong{display:block;color:#8e99ba;font-size:11px;font-weight:500;margin-bottom:9px}.creative-notes p{color:#4e6289;font-size:9px;line-height:1.9;margin:0}.output-info{padding:17px 24px;background:#0f1728;color:#4a5e86;border-color:#252f4b;gap:14px;font-size:9px}.output-info>span:first-child{color:#7780a6;font-size:9px}.info-dot{background:#9989c7}.output-info p{color:#566b93;font-size:9px;line-height:1.7}.format-label{color:#3e527e;font-size:8px}
.history-section{margin-top:36px}.history-title{margin-bottom:18px}.history-title h2{font-size:14px;font-weight:500;color:#a7b0ce}.history-title>div>span{background:#22253b;color:#797da7;font-size:9px;padding:4px 9px}.history-title>span{color:#4f6389;font-size:9px}.history-list{border-color:#2a314a;border-radius:12px}.history-empty{background:#11192a;color:#4f658c;height:98px;font-size:11px}.history-row{background:#141c2e;border-color:#29334d;padding:18px 22px;gap:14px}.history-icon{background:#292944;color:#a397d5;border-radius:8px;width:38px;height:38px}.history-main strong{font-size:12px;color:#a4b0d1}.history-main small{color:#4c678f;font-size:9px;line-height:1.7;margin-top:5px}.history-state{color:#7f93c2;font-size:9px}.history-action{background:#202c44;border-color:#344768;color:#8fa7cd;font-size:10px;padding:7px 12px;border-radius:6px;min-height:33px}.history-delete{color:#5a719a;min-height:33px;padding:8px}.history-delete:hover{color:#dba6bc}footer{border-color:#242c44;margin-top:32px;padding:23px 0 28px;font-size:9px;color:#506285}footer>span:last-child{color:#384e75;font-size:7px;letter-spacing:.1em}.footer-dot{color:#47557d}
@media(prefers-reduced-motion:no-preference){@keyframes studio-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}.intro-copy{animation:studio-enter .7s cubic-bezier(.16,1,.3,1) both}.intro-side{animation:studio-enter .9s .08s cubic-bezier(.16,1,.3,1) both}.workspace{animation:studio-enter .8s .12s cubic-bezier(.16,1,.3,1) both}}
@media(min-width:1400px){.workspace{grid-template-columns:365px minmax(0,1fr)}.preview-stage{min-height:405px}.intro{margin-bottom:36px}main{padding-top:38px}.depth-sculpture>svg{max-height:200px}.preview-stage{aspect-ratio:16/10}}
@media(max-width:1150px){.workspace{grid-template-columns:325px minmax(0,1fr);gap:18px}.intro{gap:32px}.intro h1{font-size:clamp(2.15rem,1.1rem + 2.6vw,3.2rem)}#generation-form{padding:21px}.preview-stage{min-height:340px;aspect-ratio:1.3;margin-inline:20px}.preview-toolbar{margin-inline:20px}.preview-hint{display:none}.creative-notes{gap:12px;padding-inline:20px}.creative-notes>div{padding-left:10px}.creative-notes strong{font-size:10px}.creative-notes p{font-size:8px}.result-footer{padding-inline:20px}.result-meta{font-size:9px}.format-label{display:none}.model-status{padding:13px 15px}.model-badge{font-size:7px}.header-mode{display:none}.history-state{display:none}}
@media(max-width:900px){.brand-divider,.workspace-label{display:none}.topbar{height:75px;padding-inline:4%}main{padding:32px 4% 0}.intro{gap:18px;margin-bottom:29px}.intro h1{font-size:clamp(2rem,1.1rem + 2.8vw,3rem)}.intro p{font-size:11px}.intro-tags{gap:6px}.intro-tags span{font-size:8px;padding-inline:7px}.model-status{gap:9px}.model-status strong{font-size:10px}.model-status small{font-size:8px;display:block;margin-left:0}.model-badge{display:none}.depth-sculpture{min-height:135px}.sculpture-caption{font-size:6px;letter-spacing:.08em}.workspace{grid-template-columns:305px minmax(0,1fr);gap:16px}.section-heading{padding-inline:19px;height:64px}.section-heading h2{font-size:12px}.preview-toolbar{margin:18px 15px 15px}.tabs{gap:2px;padding:3px}.tabs button{padding:7px 9px;font-size:9px}.preview-stage{margin-inline:15px;min-height:330px;aspect-ratio:1}.empty-preview{padding:23px 12px}.empty-preview h3{font-size:15px}.empty-preview p{font-size:10px}.empty-tags{gap:5px}.empty-tags span{padding:4px 6px;font-size:7px}.depth-art{transform:scale(.88);margin-bottom:18px}.result-footer{padding:19px 15px;flex-wrap:wrap}.download-button{margin-left:auto}.creative-notes{grid-template-columns:1fr;gap:17px;padding:21px}.creative-notes>div{padding-left:13px}.creative-notes span{font-size:7px;margin-bottom:7px}.creative-notes strong{font-size:11px;margin-bottom:6px}.creative-notes p{font-size:9px}.creative-notes p br{display:none}.output-info{padding:15px;gap:7px;flex-wrap:wrap}.progress-area{margin-inline:15px}.notice{margin-inline:15px}.history-row{padding:17px;gap:12px}.history-main strong{font-size:11px}}
@media(max-width:780px){.workspace{grid-template-columns:minmax(0,1fr);gap:22px}.intro{grid-template-columns:1.1fr 1fr;align-items:center;gap:15px}.intro-copy{padding-top:0}.intro-side{justify-content:center}.intro h1{font-size:clamp(2rem,1.15rem + 2.5vw,2.65rem)}.intro .eyebrow{font-size:8px;letter-spacing:.15em}.intro p{font-size:10px}.intro-tags{margin-top:17px}.intro-tags span{font-size:7px;padding:4px 6px}.depth-sculpture{min-height:118px}.sculpture-caption{font-size:5px;letter-spacing:.04em}.model-status{margin-top:3px;padding:11px 12px}.model-status small{font-size:7px}.model-status strong{font-size:9px}.status-dot{width:6px;height:6px}.preview-stage{aspect-ratio:16/10;min-height:350px;margin-inline:21px}.creative-notes{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:24px 22px}.creative-notes p{font-size:9px}.creative-notes p br{display:initial}.section-heading{height:65px;padding:0 23px}.section-heading h2{font-size:13px}#generation-form{padding:23px}.field-heading{font-size:12px}.field-heading>span{font-size:10px}.processing-note{font-size:11px}#processing-mode,select{font-size:12px;min-height:43px}.dropzone{padding:25px 15px}.dropzone strong{font-size:12px}.dropzone>span:nth-of-type(2){font-size:10px}.choose-file{font-size:11px;min-height:32px;gap:30px}.example-button{padding:12px;gap:13px}.example-button strong{font-size:11px}.example-button small{font-size:10px}.quality-picker label>span{padding:10px;font-size:12px}.quality-picker small{font-size:9px}.field-row label{font-size:11px}.palette-picker label>span{padding:11px;font-size:11px}.mode-note p{font-size:11px}.mode-note small{font-size:10px;max-width:none}.mode-note>span{font-size:8px}.local-note{font-size:9px}.generate-button{min-height:49px;font-size:13px}.preview-toolbar{margin:20px 21px 17px}.tabs button{font-size:10px;padding:8px 12px}.preview-hint{display:block;font-size:6px}.empty-preview h3{font-size:18px}.empty-preview p{font-size:11px}.empty-tags span{font-size:8px;padding:4px 9px}.empty-tags{gap:8px}.depth-art{transform:none}.result-footer{padding:21px}.result-meta{font-size:10px}.download-button{font-size:10px}.output-info{padding:16px 21px;font-size:9px}.history-title>span{font-size:9px}.history-main small{font-size:9px}.history-action{min-height:34px}.progress-area{margin-inline:21px}.notice{margin-inline:21px}.topbar .local-label{display:flex}}
@media(max-width:600px){.topbar{height:72px;padding-inline:20px;gap:12px}.brand{gap:9px}.brand b{font-size:22px}.brand-mark{width:34px;height:36px;border-radius:10px}.brand-mark svg{width:23px;height:23px}.local-label{font-size:8px;padding:6px 9px;gap:6px}.local-label i{width:4px;height:4px}main{padding:30px 17px 0}.intro{grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:25px}.intro h1{font-size:clamp(2rem,1.2rem + 5vw,2.9rem);margin:20px 0 16px;line-height:1.22}.intro .eyebrow{font-size:8px;letter-spacing:.15em}.intro p{font-size:11px;line-height:1.9}.intro-tags{gap:7px;margin-top:17px}.intro-tags span{font-size:8px;padding:5px 8px}.intro-side{gap:0;margin-top:8px}.depth-sculpture{height:125px;min-height:125px;padding-top:5px;justify-content:center}.depth-sculpture>svg{height:125px;width:auto;max-width:100%}.sculpture-caption{font-size:6px;right:0;top:4px;letter-spacing:.07em}.model-status{margin-top:2px;padding:13px 14px;gap:11px}.model-status strong{font-size:10px}.model-status small{font-size:8px;max-width:none;margin-top:5px}.model-badge{display:block;font-size:6px;padding:3px 5px;flex-shrink:0}.panel{border-radius:14px}.workspace{gap:21px}.section-heading{padding:0 20px;height:64px;gap:10px}.section-heading h2{font-size:13px}.step{width:25px;height:25px;font-size:9px}.tiny-label{font-size:7px}#generation-form{padding:21px 19px}.field-heading{font-size:11px}.field-heading>span{font-size:9px;max-width:65%;text-align:right}.processing-note{font-size:10px;margin-bottom:23px}.field-heading label{white-space:nowrap}.dropzone{padding:24px 9px}.dropzone strong{font-size:11px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.example-button strong{font-size:10px}.example-button small{font-size:9px}.quality-picker label>span{padding:9px 3px;font-size:11px}.palette-picker{gap:7px}.palette-picker label>span{padding:10px 3px;font-size:10px;gap:6px}.field-row{margin-top:21px;gap:11px}.mode-note small{font-size:9px;max-width:190px}.mode-note p{font-size:10px}.mode-note>span{font-size:7px}.generate-button{font-size:12px}.local-note{font-size:8px}.preview-toolbar{margin:18px 14px 16px;justify-content:center}.preview-hint{display:none}.tabs{width:100%;gap:5px;padding:4px}.tabs button{flex:1;font-size:10px;padding:8px 9px;min-height:36px}.preview-status{font-size:8px;padding:4px 8px}.preview-stage{margin:0 14px;min-height:315px;aspect-ratio:1.08;border-radius:9px}.empty-preview{padding:25px 12px}.depth-art{width:135px;height:112px;margin-bottom:23px}.depth-art div{left:19px}.depth-art svg{left:55px}.empty-preview h3{font-size:16px;margin-bottom:13px}.empty-preview p{font-size:10px;line-height:2}.empty-tags{margin-top:21px;gap:5px}.empty-tags span{font-size:7px;padding:4px 7px}.result-footer{padding:19px 16px;gap:14px;align-items:center}.result-meta{font-size:9px;max-width:100%}.result-meta svg{width:13px;height:13px}.download-button{margin-left:auto;min-height:37px;padding:9px 13px;font-size:10px}.creative-notes{grid-template-columns:1fr;gap:20px;padding:23px 20px}.creative-notes>div{padding-left:14px;display:grid;grid-template-columns:1fr 1.15fr;gap:8px 14px}.creative-notes span{grid-column:1/-1;margin-bottom:0;font-size:7px}.creative-notes strong{font-size:11px;margin:0;line-height:1.9}.creative-notes p{font-size:9px;line-height:1.9;margin:0}.creative-notes p br{display:none}.output-info{padding:15px 17px;gap:7px;font-size:8px}.output-info>span:first-child{font-size:8px}.output-info p{font-size:8px}.history-title{gap:10px;margin-bottom:15px}.history-title>div{gap:8px}.history-title h2{font-size:13px}.history-title>div>span{font-size:8px;padding:3px 7px}.history-title>span{font-size:8px;max-width:120px;text-align:right}.history-row{padding:15px 13px;gap:10px;flex-wrap:wrap}.history-icon{width:32px;height:32px;border-radius:7px}.history-icon svg{width:17px;height:17px}.history-main{flex:1;min-width:110px}.history-main strong{font-size:10px}.history-main small{font-size:8px;white-space:normal}.history-action{font-size:9px;padding:6px 10px;min-height:32px}.history-delete{padding:6px;min-height:32px}.history-delete svg{width:13px;height:13px}.history-empty{height:auto;min-height:95px;padding:20px;font-size:10px;line-height:1.8;gap:10px}.progress-area{margin:17px 14px 0;padding:14px}.progress-text strong{font-size:10px}.progress-text>span{font-size:9px}.progress-bottom{font-size:8px;gap:14px;align-items:start}.progress-bottom button{font-size:9px;min-height:28px}.notice{margin:17px 14px 0;font-size:10px;padding:13px}footer{font-size:8px;line-height:1.8;gap:10px;flex-wrap:wrap;padding-bottom:27px;margin-top:26px}footer>span:last-child{font-size:6px;letter-spacing:.035em}.footer-dot{margin-inline:6px}}
@media(max-width:350px){.topbar{padding-inline:15px}.brand b{font-size:20px}.local-label{font-size:7px;padding-inline:7px}main{padding-inline:13px}.model-badge{display:none}.mode-note small{max-width:160px}.palette-picker i{width:13px;height:13px}.creative-notes>div{grid-template-columns:1fr 1.1fr;gap:8px 10px}.preview-stage{min-height:300px}.history-title>span{max-width:90px}.tabs button{padding-inline:5px}.history-main{min-width:100px}}
@media(prefers-reduced-motion:reduce){button,a{transition:background-color .2s,color .2s,border-color .2s}button:hover:not(:disabled),button:active:not(:disabled){transform:none}.dropzone{transition:background-color .2s,border-color .2s}}
/* Preserve contrast for the working instructions, not just the hero. */
.processing-note{color:#929dbb}.field-heading>span{color:#8a96b5}.intro p{color:#9ba3bf}.intro-tags span{color:#949dba}.model-status small{color:#8994b3}.dropzone>span:nth-of-type(2){color:#909bbc}.example-button small{color:#8797b9}.field-row label{color:#b1bcd6}.mode-note small{color:#8693b2}.mode-note>span{color:#8f99b8}.local-note{color:#8997b7}.empty-preview p{color:#8496bb}.empty-tags span{color:#94a4c6}.creative-notes p{color:#8697ba}.creative-notes strong{color:#acb7d4}.output-info p{color:#8294b8}.result-meta{color:#8ea3c8}.history-main small{color:#8096bb}.history-title>span{color:#8295b8}.history-empty{color:#879abe}.history-title h2{color:#b2bdd8}.progress-bottom{color:#a197be}.creative-notes span{color:#8f82b0}.preview-hint{color:#7c8caf}.palette-picker label>span{color:#9aa9c9}.quality-picker label>span{color:#91a1c2}.quality-picker small{color:#7e8eaf}.model-status strong{color:#c7cee7}
@media(max-width:600px){.processing-note{font-size:11px}.empty-preview p{font-size:11px}.creative-notes p{font-size:10px}.output-info p{font-size:9px}.local-note{font-size:9px}.model-status small{font-size:9px}.intro p{font-size:12px}.intro-tags span{font-size:9px}.mode-note small{font-size:10px}.field-heading>span{font-size:10px}.example-button small{font-size:10px}.history-main small{font-size:9px}}
/* Explicit inline size prevents aspect-ratio/min-height from clipping narrow previews. */
.preview-stage{width:calc(100% - 48px);min-width:0}
@media(max-width:1150px){.preview-stage{width:calc(100% - 40px)}}
@media(max-width:900px){.preview-stage{width:calc(100% - 30px)}}
@media(max-width:780px){.preview-stage{width:calc(100% - 42px)}}
@media(max-width:600px){.preview-stage{width:calc(100% - 28px)}}
@media(max-width:600px){select,#processing-mode{font-size:16px}.preview-stage.has-video{min-height:0;aspect-ratio:16/10}#result-video{min-height:0}}
