.hm-gen-entry,.hm-generation{--gen-accent:#b9adff;--gen-bright:#8a6dff;--gen-muted:#8e91a8;position:relative;isolation:isolate;color:#f3f1ff;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;max-width:1200px;margin:0 auto;padding:28px 18px 70px;min-width:0}.hm-generation.image{--gen-accent:#87e4da;--gen-bright:#32bcb2}.hm-gen-entry *,.hm-generation *{box-sizing:border-box}.hm-gen-entry button,.hm-generation button,.hm-gen-modal button,.hm-gen-mobile-page button{font:inherit;cursor:pointer}.hm-gen-entry button:focus-visible,.hm-generation :is(button,select,textarea,a):focus-visible{outline:2px solid var(--gen-accent);outline-offset:4px}.hm-generation button:disabled{cursor:not-allowed;opacity:.45}.hm-gen-aura{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 40% 5%,#6d42e51a,transparent 48%),radial-gradient(ellipse at 90% 30%,#2dc8d50a,transparent 45%)}.hm-gen-kicker{font-size:10px;letter-spacing:2.8px;font-weight:600;color:var(--gen-accent);display:inline-flex;align-items:center;gap:9px}.hm-gen-kicker i{width:5px;height:5px;border-radius:50%;background:var(--gen-accent);box-shadow:0 0 12px var(--gen-accent)}.hm-gen-entry-head{text-align:center;margin:26px auto 44px}.hm-gen-entry h1,.hm-generation h1{font-size:clamp(28px,3.2vw,42px);font-weight:550;letter-spacing:-1.2px;line-height:1.35;margin:21px 0 15px}.hm-gen-entry h1 em,.hm-generation h1 em{font-style:normal;background:linear-gradient(110deg,#e4e1ff 5%,#ae99ff 55%,#7dcfdb);-webkit-background-clip:text;background-clip:text;color:transparent}.hm-generation.image h1 em{background-image:linear-gradient(100deg,#e7fff6,#76d9cf,#8cb3ff)}.hm-gen-entry p,.hm-gen-heading p{color:var(--gen-muted);font-size:13px;line-height:1.9}.hm-gen-portals{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:1010px;margin:auto}.hm-gen-portal{padding:0;border:1px solid #ffffff17;border-radius:24px;overflow:hidden;text-align:left;position:relative;transition:transform .35s,border-color .35s,box-shadow .35s;background:#14141e;color:inherit;min-width:0;box-shadow:0 20px 55px #0003}.hm-gen-portal:hover{transform:translateY(-7px);border-color:#b9adff70;box-shadow:0 20px 70px #5d3cce22}.hm-gen-portal.image:hover{border-color:#71dfd870;box-shadow:0 20px 70px #32bcb21a}.hm-gen-portal-art{height:235px;position:relative;overflow:hidden;background:#1b192a}.hm-gen-portal-art>img{width:100%;height:100%;object-fit:cover;opacity:.7;transition:transform 1s,opacity .5s}.hm-gen-portal:hover .hm-gen-portal-art>img{transform:scale(1.045);opacity:.9}.hm-gen-portal-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#09091208 40%,#14141e 100%)}.hm-gen-portal.image .hm-gen-portal-art>img{object-position:50% 40%;filter:hue-rotate(350deg)}.hm-gen-play{position:absolute;z-index:1;top:44%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:77px;height:77px;border-radius:23px;color:#fff;background:#b2a2ff22;border:1px solid #ffffff40;backdrop-filter:blur(12px);box-shadow:0 0 50px #9e76fc22}.hm-gen-film-lines{position:absolute;inset:20px;border:1px solid #ffffff38;border-radius:10px;z-index:1}.hm-gen-film-lines:before,.hm-gen-film-lines:after{content:"";position:absolute;background:#fff7;top:50%;left:-5px;width:10px;height:1px}.hm-gen-film-lines:after{left:auto;right:-5px}.hm-gen-timecode{position:absolute;right:35px;bottom:34px;font:10px monospace;color:#ffffff9c;z-index:1}.hm-gen-image-sign{position:absolute;left:44%;top:34%;display:grid;place-items:center;width:72px;height:72px;background:#10221e55;border:1px solid #aaf6df80;backdrop-filter:blur(10px);border-radius:16px;color:#c9ffec;z-index:1;transform:rotate(-7deg)}.hm-gen-frame{position:absolute;border:1px solid #dcffee6b;width:150px;height:150px;top:17%;left:35%;border-radius:14px;transform:rotate(12deg);z-index:1}.hm-gen-frame.two{transform:rotate(-9deg);left:31%;border-color:#e9ddff66}.hm-gen-portal-copy{padding:8px 30px 29px;position:relative}.hm-gen-portal-copy>span{color:#b7a5ed;font-size:9px;letter-spacing:2px}.hm-gen-portal.image .hm-gen-portal-copy>span{color:#81c8bd}.hm-gen-portal h2{margin:12px 0 9px;font-size:26px;letter-spacing:1px;font-weight:550;display:flex;align-items:center;justify-content:space-between}.hm-gen-portal h2 b{font-size:25px;font-weight:300;color:#c3b1ff}.hm-gen-portal p{font-size:12px;color:#9392aa;margin:0 0 24px}.hm-gen-portal-copy>div{border-top:1px solid #ffffff0d;padding-top:18px;display:flex;justify-content:space-between;align-items:center}.hm-gen-portal small{font-size:10px;color:#7c7c93;letter-spacing:.4px}.hm-gen-portal-copy i{font-style:normal;width:33px;height:33px;border-radius:50%;border:1px solid #ffffff20;display:grid;place-items:center;transform:rotate(45deg)}.hm-gen-entry-note{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:30px;color:#77778f;font-size:11px}.hm-gen-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.hm-gen-back,.hm-gen-guide{border:0;background:transparent;display:flex;align-items:center;gap:8px;color:#9492aa;padding:9px;font-size:12px}.hm-gen-back:hover,.hm-gen-guide:hover{color:#f0ebff}.hm-gen-guide span{color:var(--gen-accent)}.hm-gen-type-switch{display:flex;background:#11111c;border:1px solid #ffffff0c;border-radius:100px;padding:4px;gap:4px}.hm-gen-type-switch button{display:flex;align-items:center;gap:7px;border:0;padding:9px 18px;border-radius:100px;background:transparent;color:#8d899f;font-size:12px}.hm-gen-type-switch button[aria-pressed=true]{background:#ffffff0d;color:var(--gen-accent);box-shadow:inset 0 1px #ffffff09}.hm-gen-heading{margin:52px 0 34px;text-align:center}.hm-gen-heading h1{font-size:clamp(27px,2.8vw,36px);margin:15px 0 10px}.hm-gen-composer{position:relative;border:1px solid #ffffff1a;border-radius:23px;background:linear-gradient(135deg,#21202c,#171721 65%);box-shadow:0 25px 65px #0003,inset 0 1px #ffffff05;overflow:visible}.hm-gen-composer-glow{position:absolute;inset:-1px;z-index:-1;background:linear-gradient(130deg,#a08bff80,transparent 32%,transparent 75%,#63cfdb40);border-radius:24px;filter:blur(1px)}.hm-gen-composer-content{overflow:hidden;border-radius:23px}.hm-gen-input-area{padding:25px 26px 15px}.hm-gen-materials{display:flex;align-items:center;gap:10px;overflow:auto;padding:1px 1px 13px;scrollbar-width:thin}.hm-gen-upload{background:#ffffff04;border:1px dashed #ffffff29;width:82px;height:84px;min-width:82px;border-radius:13px;color:#ada9bf;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;position:relative;overflow:hidden}.hm-gen-upload:hover{background:#ffffff09;border-color:var(--gen-accent);color:var(--gen-accent)}.hm-gen-upload span{font-size:10px}.hm-gen-upload img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.hm-gen-upload img+span{z-index:1;margin-top:auto;background:#080811b0;width:100%;padding:5px}.hm-gen-frame-inputs{display:flex;gap:10px;flex-shrink:0}.hm-gen-thumbnails{display:flex;gap:9px}.hm-gen-thumb{height:82px;width:77px;position:relative;border-radius:10px;background:#292535;flex-shrink:0;display:grid;place-items:center;border:1px solid #ffffff13;overflow:hidden}.hm-gen-thumb>img{width:100%;height:100%;object-fit:cover}.hm-gen-thumb>span{position:absolute;bottom:0;left:0;padding:3px 6px;font-size:9px;background:#080811a6;color:#ddd7f7;max-width:100%}.hm-gen-thumb button{position:absolute;right:3px;top:3px;width:19px;height:19px;border:0;background:#080811b0;border-radius:50%;color:white;font-size:15px;line-height:1;display:grid;place-items:center}.hm-gen-thumb .hm-gen-move{top:auto;bottom:3px;font-size:12px}.hm-gen-input-area textarea{display:block;width:100%;resize:vertical;min-height:117px;max-height:350px;border:0;background:transparent;outline:none!important;box-shadow:none!important;color:#e9e6f7;font-family:inherit;font-size:13px;line-height:1.9;padding:9px 0 7px}.hm-gen-input-area textarea::placeholder{color:#777389}.hm-gen-input-meta{display:flex;align-items:center;justify-content:space-between;color:#69677f;font-size:10px;gap:10px}.hm-gen-text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;text-decoration:none;color:#9c95b1;padding:6px 0;font-size:11px}.hm-gen-text-button:hover{color:var(--gen-accent)}.hm-gen-toolbar{padding:15px 19px 17px;border-top:1px solid #ffffff08;background:#1010183b;display:flex;align-items:center;justify-content:space-between;gap:16px}.hm-gen-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.hm-gen-control{display:flex;align-items:center;gap:7px;border:1px solid #ffffff0f;border-radius:10px;background:#ffffff03;padding:7px 8px;color:#b4aacb;min-width:80px;max-width:195px}.hm-gen-control>span{min-width:0}.hm-gen-control small{display:block;font-size:8px;letter-spacing:.3px;color:#797489;line-height:1.2;margin-bottom:4px}.hm-gen-control select{appearance:none;-webkit-appearance:none;font-family:inherit;font-size:11px;border:0;outline:none;color:#ddd6ef;background:transparent;width:100%;max-width:170px;cursor:pointer;padding:0;line-height:1.5}.hm-gen-control select option{background:#21202c;color:#f3eefc}.hm-gen-control.model{color:var(--gen-accent);background:#9e83fd09;min-width:145px;max-width:210px;border-color:#a99be526}.hm-gen-control.model select{color:var(--gen-accent);font-weight:600}.hm-gen-submit{align-self:stretch;min-width:111px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:13px;border:1px solid #ffffff20;background:linear-gradient(140deg,#b7a5fa,#8669dd);color:#171026;font-size:12px;font-weight:700;box-shadow:0 5px 22px #7c53ee33;transition:box-shadow .2s,transform .2s}.image .hm-gen-submit{background:linear-gradient(140deg,#a0e9d3,#4cb6b5);box-shadow:0 5px 22px #32bcb222}.hm-gen-submit:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 8px 26px #7c53ee55}.hm-gen-submit:disabled{background:#353040;color:#9387a6;box-shadow:none;opacity:.8!important;border-color:#ffffff0b}.hm-gen-summary{padding:18px 4px 7px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:10px;color:#787386;line-height:1.9}.hm-gen-summary>div{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.hm-gen-summary strong{font-size:12px;font-weight:500;color:var(--gen-accent)}.hm-gen-summary small{font-size:9px}.hm-gen-state{display:inline-flex;align-items:center;gap:6px;color:#9b8cae;white-space:nowrap}.hm-gen-state i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#8d7c9d}.hm-gen-state.ready{color:#7fae9f}.hm-gen-state.ready i{background:#72c6a6;box-shadow:0 0 7px #72c6a655}.hm-gen-file-hint{margin:4px;color:#696576;font-size:10px;line-height:1.8}.hm-gen-alert,.hm-gen-notice{font-size:12px;border:1px solid #f1a67726;background:#e98a5c09;color:#d9a58e;padding:12px 15px;border-radius:11px;line-height:1.8;margin:15px 0}.hm-gen-alert button{background:transparent;color:inherit;border:1px solid #e7b2a044;border-radius:6px;padding:4px 9px;margin-left:12px;font-size:11px}.hm-gen-notice{border-color:#a595df26;background:#9d80df08;color:#bcb0d2}.hm-gen-results{margin:44px 0 0;border-top:1px solid #ffffff09;padding-top:28px}.hm-gen-results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.hm-gen-results-head .hm-gen-kicker{font-size:8px;letter-spacing:2px;color:#6d667d}.hm-gen-results h2{font-size:16px;font-weight:500;margin:7px 0 0;letter-spacing:.4px}.hm-gen-empty{display:flex;align-items:center;gap:18px;border:1px dashed #ffffff14;background:#ffffff02;border-radius:16px;padding:29px 24px;color:#686176}.hm-gen-empty strong{font-size:12px;color:#aba1b9;font-weight:400}.hm-gen-empty p{font-size:11px;color:#6e667d;margin:7px 0 0;line-height:1.8}.hm-gen-empty>span{margin-left:auto;font-size:29px;color:#5f4b7c}.hm-gen-result{border-radius:16px;border:1px solid #ffffff12;background:#15141c;padding:20px}.hm-gen-result>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.hm-gen-result small{color:#7d748b;font-size:10px}.hm-gen-job-status{font-size:11px;color:#b8a2da}.hm-gen-job-status.succeeded{color:#80bfab}.hm-gen-job-status.failed{color:#d59b9b}.hm-gen-result>p{font-size:12px;line-height:1.8;color:#b0a5bf;white-space:pre-wrap;overflow-wrap:anywhere}.hm-gen-output-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.hm-gen-output-grid>div{min-width:0}.hm-gen-output-grid img,.hm-gen-output-grid video{max-height:400px;max-width:100%;object-fit:contain}.hm-gen-result-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.hm-gen-result-actions button{border:1px solid #ffffff18;background:#ffffff04;border-radius:8px;color:#bdb1d0;font-size:11px;padding:8px 12px}.hm-gen-progress{padding:30px;display:flex;align-items:center;flex-direction:column;color:var(--gen-accent);gap:12px}.hm-gen-progress>svg{animation:hm-gen-breathe 3s infinite}.hm-gen-progress p{font-size:13px}.hm-gen-progress progress{width:min(300px,100%);height:4px;accent-color:var(--gen-bright)}.hm-gen-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:17px}.hm-gen-history button{display:flex;align-items:center;gap:12px;padding:14px 17px;border-radius:12px;border:1px solid #ffffff0c;background:#ffffff02;color:#837592;text-align:left;min-width:0}.hm-gen-history button:hover{background:#a99be508;border-color:#a99be526}.hm-gen-history button>span{min-width:0;flex:1}.hm-gen-history strong{font-size:11px;font-weight:400;color:#b4a8c2;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hm-gen-history small{font-size:9px;display:block;margin-top:6px;color:#6d627d}.hm-gen-history b{font-weight:400}.hm-gen-help{background:#a295e608;border:1px solid #a295e61a;border-radius:14px;padding:18px 22px;margin-bottom:22px;font-size:12px;color:#9c91b1;line-height:1.9}.hm-gen-help strong{font-weight:500;color:#bcb0d4}.hm-gen-help p{margin:5px 0}.hm-gen-remix-context{display:flex;gap:18px;background:#ffffff03;border:1px solid #ffffff10;border-radius:15px;padding:14px;margin-bottom:23px;align-items:center}.hm-gen-remix-context>img,.hm-gen-remix-context>video{width:135px;height:100px;object-fit:cover;border-radius:10px}.hm-gen-remix-context>div{min-width:0}.hm-gen-remix-context span{display:block;font-size:9px;color:#8c72ba;margin-bottom:7px}.hm-gen-remix-context strong{font-weight:500;font-size:13px}.hm-gen-remix-context p{font-size:11px;color:#9d90ad;line-height:1.6;margin:7px 0}.hm-gen-remix-context small{font-size:9px;color:#776883}.hm-gen-modal,.hm-gen-mobile-page{position:fixed;inset:0;z-index:160;background:#0e0d15;overflow:auto;overscroll-behavior:contain;color:#eee8f7}.hm-gen-modal>.hm-gen-boundary{width:100%}.hm-gen-library-overlay{position:fixed;inset:0;z-index:180;background:#03020acc;backdrop-filter:blur(9px);display:grid;place-items:center;padding:24px}.hm-gen-library{width:min(700px,100%);max-height:85dvh;overflow:auto;background:#1a1723;border:1px solid #ffffff25;border-radius:19px;padding:22px;color:#ddd2ed}.hm-gen-library>header{display:flex;justify-content:space-between;align-items:center}.hm-gen-library h2{font-size:17px;margin:0;font-weight:500}.hm-gen-library>p{font-size:11px;color:#9887ab;margin:14px 0}.hm-gen-library>header button{font-size:22px;border:0;background:transparent;color:#bca8cf}.hm-gen-library>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.hm-gen-library>div button{border:1px solid #ffffff14;background:#ffffff03;padding:6px;border-radius:9px;color:#ab9abb;min-width:0;overflow:hidden;text-align:left}.hm-gen-library>div button img{width:100%;height:100px;object-fit:cover;border-radius:5px}.hm-gen-library>div button span{display:block;font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:5px 2px}.hm-gen-library-done{display:block;margin:20px 0 0 auto;background:#a896e1;color:#171020;border:0;border-radius:8px;font-size:12px;padding:10px 25px}.hm-gen-mobile-launch{display:flex;align-items:center;width:100%;gap:14px;text-align:left;background:linear-gradient(110deg,#282037,#1b1b2b);border:1px solid #afa0d626;border-radius:15px;padding:17px 20px;color:#c4b3f3;margin:20px 0}.hm-gen-mobile-launch>span{flex:1}.hm-gen-mobile-launch strong{font-size:16px;display:block;font-weight:500}.hm-gen-mobile-launch small{font-size:10px;color:#8f80a6;display:block;margin-top:6px}.hm-gen-mobile-launch b{font-size:23px;font-weight:300}.hm-gen-mobile-close{position:relative;z-index:1;margin:17px 18px 0;background:transparent;border:0;font-size:12px;color:#9e8db5}.hm-gen-failure{margin:30px;padding:30px;border:1px solid #b49de133;border-radius:20px;background:#181322;color:#c8b9dc;text-align:center}.hm-gen-failure h2{font-size:19px}.hm-gen-failure p{font-size:13px;color:#9886ab}.hm-gen-failure button{background:#b099df;border:0;border-radius:8px;padding:10px 17px;color:#180e27}.hm-cap-advanced{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:15px}.hm-cap-advanced label{flex:1;min-width:180px}.hm-cap-advanced textarea{min-height:68px;width:100%;font:11px/1.8 monospace}.hm-gen-composer button,.hm-gen-composer select{touch-action:manipulation}@keyframes hm-gen-breathe{50%{opacity:.45;transform:scale(.9)}}@media(min-width:1400px){.hm-gen-heading{margin-top:65px}.hm-gen-portals{gap:32px}.hm-gen-portal-art{height:265px}.hm-generation{max-width:1180px}}@media(max-width:900px){.hm-gen-toolbar{align-items:stretch}.hm-gen-controls{gap:6px}.hm-gen-control{min-width:75px;max-width:155px}.hm-gen-control.model{max-width:190px;min-width:140px}.hm-gen-summary{flex-wrap:wrap}.hm-gen-portal-art{height:205px}.hm-gen-portal-copy{padding:8px 22px 23px}.hm-gen-portal h2{font-size:23px}.hm-gen-heading{margin-top:36px}}@media(max-width:600px){.hm-gen-entry,.hm-generation{padding:22px 15px 45px}.hm-gen-entry-head{margin:20px 0 30px}.hm-gen-entry h1{font-size:29px;letter-spacing:-.8px}.hm-gen-entry-head p{font-size:11px}.hm-gen-kicker{font-size:8px;letter-spacing:2px}.hm-gen-portals{gap:16px;grid-template-columns:1fr}.hm-gen-portal{border-radius:19px;display:grid;grid-template-columns:37% 63%;min-height:185px}.hm-gen-portal-art{height:100%;min-height:185px}.hm-gen-portal-art:after{background:linear-gradient(90deg,transparent,#14141e)}.hm-gen-play{width:53px;height:53px;border-radius:15px;left:48%}.hm-gen-play svg{width:28px}.hm-gen-film-lines{inset:12px;border-radius:7px}.hm-gen-timecode{font-size:7px;right:19px;bottom:23px}.hm-gen-portal-copy{padding:24px 18px 17px 8px;display:flex;flex-direction:column;justify-content:center}.hm-gen-portal-copy>span{font-size:7px;letter-spacing:1.3px}.hm-gen-portal h2{font-size:22px;margin:13px 0 7px}.hm-gen-portal p{font-size:10px;margin:0 0 16px;line-height:1.7}.hm-gen-portal-copy>div{padding-top:12px}.hm-gen-portal small{font-size:8px}.hm-gen-portal-copy i{width:26px;height:26px}.hm-gen-portal-copy i svg{width:15px}.hm-gen-frame{width:75px;height:95px;left:22%;top:21%}.hm-gen-frame.two{left:16%}.hm-gen-image-sign{width:48px;height:48px;left:34%;top:34%;border-radius:10px}.hm-gen-image-sign svg{width:24px}.hm-gen-entry-note{font-size:9px;gap:7px;margin-top:22px}.hm-gen-entry-note svg{width:14px}.hm-gen-header{gap:4px}.hm-gen-back{padding:5px 0;font-size:11px;gap:4px}.hm-gen-guide{font-size:10px;padding:5px 0}.hm-gen-type-switch{gap:0;padding:3px}.hm-gen-type-switch button{font-size:10px;gap:4px;padding:8px 10px}.hm-gen-type-switch svg{width:13px}.hm-gen-heading{margin:32px 0 24px}.hm-gen-heading h1{font-size:26px;letter-spacing:-.6px}.hm-gen-heading p{font-size:10px;margin-top:9px}.hm-gen-composer{border-radius:18px}.hm-gen-composer-content{border-radius:18px}.hm-gen-input-area{padding:18px 16px 13px}.hm-gen-upload{width:68px;min-width:68px;height:72px;border-radius:10px}.hm-gen-upload span{font-size:9px}.hm-gen-thumb{height:70px;width:64px}.hm-gen-input-area textarea{font-size:13px;min-height:145px;line-height:1.8}.hm-gen-toolbar{flex-wrap:wrap;padding:13px 12px;gap:12px}.hm-gen-controls{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hm-gen-control,.hm-gen-control.model{min-width:0;max-width:none;padding:8px 7px;gap:5px;border-radius:9px}.hm-gen-control.model{grid-column:span 2}.hm-gen-control>svg:first-child{width:14px;min-width:14px}.hm-gen-control>svg:last-child{width:10px;min-width:10px}.hm-gen-control>span{flex:1}.hm-gen-control small{font-size:8px;margin-bottom:4px}.hm-gen-control select{font-size:10px;max-width:100%}.hm-gen-submit{width:100%;padding:12px 17px;justify-content:center;gap:15px;border-radius:10px;font-size:12px;min-height:44px}.hm-gen-submit svg{width:19px}.hm-gen-summary{padding:14px 1px 4px;font-size:9px;gap:7px}.hm-gen-summary>div{gap:10px}.hm-gen-summary strong{font-size:11px}.hm-gen-file-hint{font-size:9px;line-height:1.8;margin-top:6px}.hm-gen-results{margin-top:29px;padding-top:23px}.hm-gen-results h2{font-size:15px}.hm-gen-results-head{margin-bottom:17px}.hm-gen-results-head .hm-gen-text-button{font-size:10px}.hm-gen-empty{padding:22px 16px;gap:13px;border-radius:13px}.hm-gen-empty p{font-size:10px}.hm-gen-empty strong{font-size:11px}.hm-gen-empty>span{display:none}.hm-gen-history{grid-template-columns:1fr;gap:8px;margin-top:13px}.hm-gen-history button{padding:13px 15px}.hm-gen-result{padding:15px}.hm-gen-result>header{gap:10px}.hm-gen-result small{font-size:9px}.hm-gen-result-actions button{min-height:38px}.hm-gen-remix-context{gap:12px;padding:11px}.hm-gen-remix-context>img,.hm-gen-remix-context>video{width:95px;height:90px}.hm-gen-remix-context p{font-size:10px;max-height:44px;overflow:auto}.hm-gen-library-overlay{padding:14px}.hm-gen-library{padding:17px;border-radius:16px}.hm-gen-library>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hm-gen-library>div button img{height:80px}.hm-gen-help{padding:15px;font-size:11px}.hm-gen-mobile-page>.hm-generation{padding-top:10px}.hm-gen-alert,.hm-gen-notice{font-size:11px;padding:11px 13px}}
@media(prefers-reduced-motion:reduce){.hm-gen-entry *,.hm-generation *{animation:none!important;transition:none!important}}

/* Keep task navigation inside the active document or creation overlay. */
.hm-gen-results,.hm-gen-composer{scroll-margin-top:88px}
.hm-gen-results h2:focus{outline:none}
.hm-gen-results h2:focus-visible{outline:2px solid var(--gen-accent);outline-offset:7px;border-radius:3px}
.hm-gen-result{transition:border-color .35s,box-shadow .35s}
.hm-gen-result.is-highlighted{border-color:var(--gen-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--gen-accent) 22%,transparent),0 0 28px color-mix(in srgb,var(--gen-accent) 12%,transparent)}
.hm-gen-result-actions .hm-gen-continue{display:inline-flex;align-items:center;gap:7px;border-color:color-mix(in srgb,var(--gen-accent) 35%,transparent);color:var(--gen-accent);min-height:40px}
.hm-gen-output-status{font-size:12px;color:var(--gen-accent);padding:28px 0;text-align:center}
.hm-gen-progress small{text-align:center;line-height:1.7}
@media(max-width:600px){.hm-gen-results,.hm-gen-composer{scroll-margin-top:64px}.hm-gen-result-actions button{min-height:44px}.hm-gen-result>header{gap:12px;flex-wrap:wrap}.hm-gen-output-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.hm-gen-result{transition:none}.hm-gen-progress>svg{animation:none}}
.hm-gen-output-grid>div{display:flex;flex-direction:column;align-items:stretch;gap:12px}.hm-gen-output-grid .hm-media-image-button{height:auto;max-height:400px;min-height:120px;flex-shrink:0}.hm-gen-output-grid .hm-media-image-button img,.hm-gen-output-grid .hm-media-image-button video{height:auto;max-height:400px}.hm-gen-output-grid .hm-media-download-wrap{align-self:flex-start}.hm-gen-result>p{margin-top:18px}
