
    #hhswApp .hhsw-task-region{width:100%;min-width:0;max-width:100%;overflow-anchor:none}
    #hhswApp .hhsw-stage.has-tasks{padding-bottom:var(--hhsw-composer-reserve,360px)!important}
/* Keep compact frame uploads on the composer surface against the global appearance rule. */
html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer > .hhsw-first-last-layout,html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot,html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-first-last-layout > .hhsw-ref-note{background:transparent!important;background-image:none!important}
/* First/last-frame uploads share the composer's theme surface and stay compact. */
html body #hhswApp .hhsw-composer > .hhsw-first-last-layout{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px 12px!important;margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout > .hhsw-frame-pair{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;flex:0 0 auto!important;margin:0!important;padding:0!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot{width:112px!important;height:64px!important;min-width:0!important;min-height:0!important;flex:0 0 auto!important;padding:0!important;border:1px dashed var(--hhv-border,var(--hhsw-theme-border,#cbd5e1))!important;border-radius:8px!important;background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;color:var(--hhv-ink,var(--hhsw-theme-text,#17263a))!important;box-shadow:none!important;font-size:12px!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot:is(:hover,:focus-within,.hhsw-drag-over){border-color:var(--hhv-focus,var(--accent,#11a6d8))!important;outline:1px solid var(--hhv-focus,var(--accent,#11a6d8));outline-offset:1px}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot > span{background:transparent!important;color:inherit!important;padding:0 6px!important;font-size:12px!important;line-height:1.3!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-eq{font-size:16px!important;color:var(--hhv-ink-secondary,var(--hhsw-theme-muted,#667085))!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout > .hhsw-ref-note{flex:1 1 180px!important;min-width:0!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.5!important;color:var(--hhv-ink-secondary,var(--hhsw-theme-muted,#667085))!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot > em{left:6px!important;bottom:5px!important;max-width:calc(100% - 46px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;padding:2px 5px!important;font-size:11px!important;background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;color:var(--hhv-ink,var(--hhsw-theme-text,#17263a))!important}
html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-remove-file{top:3px!important;right:3px!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;opacity:1!important;transform:none!important;background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;color:var(--hhv-ink,var(--hhsw-theme-text,#17263a))!important;border-color:var(--hhv-border,var(--hhsw-theme-border,#cbd5e1))!important}
@media(max-width:600px){html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot{width:104px!important}html body #hhswApp .hhsw-composer .hhsw-first-last-layout > .hhsw-ref-note{flex-basis:100%!important}html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-remove-file{width:44px!important;height:44px!important}html body #hhswApp .hhsw-composer .hhsw-first-last-layout .hhsw-frame-slot > em{max-width:calc(100% - 52px)!important}}

/* Shared reference surfaces: all supported model families, empty and populated. */
html body #hhswApp .hhsw-composer > .hhsw-ref-row{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-generic-upload{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:4px!important;flex:0 0 112px!important;width:112px!important;height:64px!important;min-width:0!important;min-height:0!important;max-width:112px!important;margin:0!important;padding:8px 6px!important;overflow:hidden!important;border:1px dashed var(--hhv-border,var(--hhsw-theme-border,#cbd5e1))!important;border-radius:8px!important;background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;color:var(--hhv-ink,var(--hhsw-theme-text,#17263a))!important;box-shadow:none!important;transform:none!important;transition:border-color .15s!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-generic-upload .hhsw-upload-label{opacity:1!important;transform:none!important;position:static!important;display:block!important;margin:0!important;font-size:12px!important;line-height:1.4!important;background:transparent!important;color:inherit!important;white-space:normal!important;text-align:center!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-generic-upload .hhsw-upload-count{position:static!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--hhv-ink-secondary,var(--hhsw-theme-muted,#667085))!important;font-size:11px!important;line-height:1.3!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list{position:static!important;display:flex!important;align-items:center!important;flex:1 1 0!important;gap:8px!important;min-width:0!important;width:auto!important;max-width:calc(100% - 120px)!important;margin:0!important;padding:2px!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;isolation:isolate;scrollbar-width:thin;overscroll-behavior-x:contain}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list:empty{display:none!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list > .hhsw-thumb{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 64px!important;width:64px!important;height:64px!important;min-width:64px!important;max-width:64px!important;margin:0!important;overflow:hidden!important;border:1px solid var(--hhv-border,var(--hhsw-theme-border,#cbd5e1))!important;border-radius:8px!important;background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;color:var(--hhv-ink,var(--hhsw-theme-text,#17263a))!important;transform:none!important;transition:none!important;z-index:auto!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list > .hhsw-thumb:is(:hover,:focus-within){transform:none!important;margin:0!important;z-index:auto!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list > .hhsw-thumb::before,html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list > .hhsw-thumb::after{display:none!important;content:none!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row .hhsw-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row .hhsw-thumb b{font-size:11px!important;padding:2px!important;overflow-wrap:anywhere!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row .hhsw-remove-file{position:absolute!important;top:2px!important;right:2px!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;opacity:1!important;transform:none!important;z-index:2!important;background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;color:var(--hhv-ink,var(--hhsw-theme-text,#17263a))!important;border:1px solid var(--hhv-border,var(--hhsw-theme-border,#cbd5e1))!important;border-radius:6px!important}
html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-ref-note{flex:1 1 180px!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important;color:var(--hhv-ink-secondary,var(--hhsw-theme-muted,#667085))!important;font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere!important;opacity:1!important}
html body #hhswApp .hhsw-composer .hhsw-generic-upload.has-files ~ .hhsw-ref-note{flex-basis:100%!important}
html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer > .hhsw-ref-row{min-height:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important}html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-ref-row > .hhsw-ref-note{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important}
html body #hhswApp .hhsw-composer.hhsw-drag-over,html body #hhswApp .hhsw-composer .hhsw-ref-row.hhsw-drag-over{background:var(--hhv-surface,var(--hhsw-theme-surface,#fff))!important;outline:2px dashed var(--hhv-focus,var(--accent,#11a6d8))!important;outline-offset:2px!important}
html body #hhswApp .hhsw-composer .hhsw-generic-upload:is(:hover,:focus-within),html body #hhswApp .hhsw-composer .hhsw-remove-file:focus-visible{outline:2px solid var(--hhv-focus,var(--accent,#11a6d8))!important;outline-offset:1px!important}
html body #hhswApp .hhsw-composer > .hhsw-status{margin-top:6px!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important;color:var(--hhv-ink-secondary,var(--hhsw-theme-muted,#667085))!important;font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
html body #hhswApp .hhsw-composer .hhsw-pop:not(.open) > .hhsw-menu{display:none!important}
html body #hhswApp .hhsw-composer > .hhsw-status:empty{display:none!important}

@media(max-width:600px){html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-generic-upload{width:104px!important;max-width:104px!important;flex-basis:104px!important}html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list{max-width:calc(100% - 112px)!important}html body #hhswApp .hhsw-composer .hhsw-ref-row .hhsw-remove-file{width:44px!important;height:44px!important}html body #hhswApp .hhsw-composer .hhsw-ref-row > .hhsw-ref-note{flex-basis:100%!important}}

/* Explicitly override global theme mobile grid and legacy preview minimum height. */
html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer > .hhsw-ref-row{display:flex!important;flex-direction:row!important;grid-template-columns:none!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-height:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important}
html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-ref-row > .hhsw-generic-upload{flex:0 0 112px!important;width:112px!important;max-width:112px!important;min-width:0!important;height:64px!important;min-height:0!important;max-height:64px!important}
html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list{display:flex!important;flex:1 1 0!important;flex-wrap:nowrap!important;min-width:0!important;width:auto!important;max-width:calc(100% - 120px)!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important}
html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list:empty{display:none!important}
@media(max-width:600px){html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-ref-row > .hhsw-generic-upload{flex-basis:104px!important;width:104px!important;max-width:104px!important}html[data-hhv-appearance] body.hhv-home-visual #hhswApp .hhsw-studio > .hhsw-stage > .hhsw-composer .hhsw-ref-row > .hhsw-thumb-list{max-width:calc(100% - 112px)!important}}

.hhref-strip{--hhref-surface:var(--hhv-surface,#121c24)!important;--hhref-text:var(--hhv-ink,#eff6fc)!important;--hhref-border:var(--hhv-border-strong,#536575)!important;display:flex!important;align-items:flex-start!important;gap:12px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;min-width:0!important;max-width:100%!important;padding:14px 6px!important}
.hhref-card{position:relative!important;display:flex!important;flex-direction:column!important;flex:0 0 128px!important;width:128px!important;min-width:128px!important;height:auto!important;overflow:visible!important;background:transparent!important;border:0!important;gap:4px!important}
.hhref-card button{box-sizing:border-box!important;position:static!important;transform:none!important;transition:none!important;min-height:44px!important;margin:0!important;padding:4px 6px!important;cursor:pointer!important;box-shadow:none!important}
.hhref-card .hhref-visual{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:128px!important;height:80px!important;min-height:80px!important;padding:0!important;overflow:visible!important;background:var(--hhref-surface,#121c24)!important;border:1px solid var(--hhref-border,#536575)!important;border-radius:10px!important;z-index:1}
.hhref-visual img,.hhref-visual video{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:8px!important;transform:scale(var(--hhref-scale,1))!important;transform-origin:center!important;transition:transform .16s ease!important;background:var(--hhref-surface,#121c24)!important;pointer-events:none!important}
.hhref-card:hover .hhref-visual{z-index:3}.hhref-kind-icon{color:var(--hhref-text,#eff6fc);font-size:22px;pointer-events:none}.hhref-visual .hhref-kind-icon{position:absolute;inset:auto}
.hhref-actions{display:flex!important;gap:4px!important;align-items:stretch!important}.hhref-actions .hhref-mention{flex:1!important;color:var(--hhref-text,#eff6fc)!important;background:var(--hhref-surface,#121c24)!important;border:1px solid var(--hhref-border,#536575)!important;border-radius:7px!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important;text-align:center!important}
.hhref-actions .hhref-remove{flex:0 0 44px!important;width:44px!important;min-width:44px!important;color:var(--hhref-text,#eff6fc)!important;background:var(--hhref-surface,#121c24)!important;border:1px solid var(--hhref-border,#536575)!important;border-radius:7px!important;font-size:22px!important}
.hhref-card .hhref-replace{color:var(--hhref-text,#eff6fc)!important;background:transparent!important;border:1px dashed var(--hhref-border,#536575)!important;border-radius:7px!important;font-size:12px!important;min-height:32px!important}
.hhref-card input[hidden]{display:none!important}.hhref-card.hh-ref-drop-target,.hhref-card.hhref-drop-target{outline:2px solid #59c2e8!important;outline-offset:4px!important}
.hhref-role{position:absolute;left:4px;top:4px;padding:3px 5px;background:#101c29;color:#fff;font-size:11px;border-radius:5px;pointer-events:none}.hhref-drag-handle{position:absolute;right:4px;top:4px;z-index:4;font-size:11px;padding:2px 4px;text-align:center;cursor:grab;color:#eff6fc;background:#122231;border-radius:5px;line-height:18px}
.hhref-card button:focus-visible{outline:2px solid #59c2e8!important;outline-offset:2px!important}
.hhref-modal{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(0,0,0,.86)!important;padding:16px!important;color:#eef6ff!important;box-sizing:border-box!important}
.hhref-modal-panel{display:flex!important;flex-direction:column!important;width:min(1200px,96vw)!important;height:min(900px,94vh)!important;background:#10171e!important;border:1px solid #627587!important;border-radius:14px!important;overflow:hidden!important}
.hhref-modal-top,.hhref-modal-tools{display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;padding:10px 14px!important;flex-wrap:wrap!important}.hhref-modal-top strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 16px/1.4 sans-serif}
.hhref-modal button{position:static!important;min-width:44px!important;min-height:44px!important;transform:none!important;cursor:pointer!important;color:#eef6ff!important;background:#20303e!important;border:1px solid #688095!important;border-radius:8px!important;padding:8px 12px!important;font:500 14px/1.2 sans-serif!important}
.hhref-modal-body{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:auto;background:#080c10}.hhref-full-image{width:100%;height:100%;object-fit:contain;transform-origin:center;flex:none;max-width:none!important;max-height:none!important}.hhref-full-media{width:100%;height:100%;max-height:100%;object-fit:contain}.hhref-full-document{width:100%;height:100%;border:0}.hhref-full-text{align-self:stretch;width:100%;padding:18px;overflow:auto;white-space:pre-wrap;color:#eef6ff;background:#10171e}.hhref-preview-error{position:absolute;bottom:12px;background:#172630;padding:8px;color:white}
.hhref-chooser{position:fixed!important;z-index:2147482000!important;background:#15222d!important;color:#f3f8fd!important;border:1px solid #688095!important;border-radius:10px!important;padding:6px!important;box-shadow:0 8px 28px #0008!important;overflow:auto!important;box-sizing:border-box!important}
.hhref-option{display:block!important;position:static!important;transform:none!important;width:100%!important;min-height:44px!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;border:0!important;background:transparent!important;color:#f3f8fd!important;padding:10px!important;border-radius:6px!important;font:500 14px/1.2 sans-serif!important;cursor:pointer!important}.hhref-option:hover,.hhref-option.is-active{background:#275269!important}.hhref-empty,.hhref-feedback{padding:8px;font-size:13px}
html[data-hanhai-theme="light"] .hhref-strip,body.hanhai-theme-light .hhref-strip{--hhref-surface:#f4f7fa;--hhref-text:#15212b;--hhref-border:#788b9c}
@media(max-width:520px){.hhref-strip{gap:10px!important}.hhref-card{flex-basis:112px!important;width:112px!important;min-width:112px!important}.hhref-card .hhref-visual{width:112px!important;height:76px!important;min-height:76px!important}.hhref-card .hhref-replace{min-height:44px!important}.hhref-modal{padding:6px!important}.hhref-modal-panel{width:100%!important;height:96vh!important}.hhref-modal-top strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.hhref-visual img,.hhref-visual video{transition:none!important;transform:none!important}}

.hhsw-first-last-layout{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.hhsw-first-last-layout>.hhsw-thumb-list{flex-basis:100%!important}.hhsw-first-last-layout .hhsw-frame-slot{height:44px!important;min-height:44px!important;width:auto!important;min-width:112px!important}.hhsw-first-last-layout .hhsw-ref-note{display:none!important}


/* Compact caret-adjacent @ menu; native reference cards unchanged. */
.hhref-chooser{max-width:240px!important;padding:4px!important;border-radius:7px!important;box-shadow:0 4px 14px #0005!important}
.hhref-option{min-height:32px!important;padding:6px 8px!important;font:500 12px/1.25 sans-serif!important;border-radius:4px!important}
.hhref-empty{padding:6px!important;font-size:12px!important}
@media(max-width:520px){.hhref-option{min-height:44px!important}}

    html body #hhswApp .hhsw-stage.has-tasks .hhsw-composer{position:fixed!important;left:calc(var(--rail) + var(--threads) + 32px)!important;right:32px!important;bottom:18px!important;width:auto!important;max-width:1120px!important;max-height:min(62dvh,540px)!important;margin:0 auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable;transform:translateZ(0)}
    #hhswApp .hhsw-studio.threads-collapsed .hhsw-stage.has-tasks .hhsw-composer{left:calc(var(--rail) + 32px)!important}
    #hhswApp .hhsw-return-latest{bottom:calc(var(--hhsw-composer-reserve,360px) + 24px)!important}
    #hhswApp .hhsw-task-list{width:min(1040px,100%)!important;max-width:1040px!important;min-width:0!important;margin:0 auto!important;padding-bottom:28px!important;display:grid!important;gap:20px!important;align-items:stretch!important}
    #hhswApp .hhsw-task-list .hhsw-task:last-child{margin-bottom:0!important}
    #hhswApp .hhsw-task{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;overflow-anchor:none!important;content-visibility:visible!important;contain:none!important;container-name:hhsw-task-card;container-type:inline-size}
    #hhswApp .hhsw-task *{box-sizing:border-box;max-width:100%}
    #hhswApp .hhsw-prompt-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:start!important;margin-bottom:12px!important}
    #hhswApp .hhsw-task .prompt{max-width:100%!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important}
    #hhswApp .hhsw-task.hhsw-prompt-expanded .prompt{display:block!important;-webkit-line-clamp:unset;max-height:190px;overflow:auto!important;padding-right:6px}
    #hhswApp .hhsw-prompt-tools{display:flex;gap:6px;flex:0 0 auto}
    #hhswApp .hhsw-prompt-tools button,#hhswApp .hhsw-media-hover button,#hhswApp .hhsw-media-hover a{min-height:30px;padding:0 10px;border:1px solid rgba(91,174,255,.30);border-radius:8px;background:rgba(14,40,66,.92);color:#f4fbff;font-size:12px;font-weight:850;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
    #hhswApp .hhsw-task:has(.hhsw-task-preview)>.meta{display:none!important}
    #hhswApp .hhsw-task .meta{max-width:100%!important;overflow:hidden!important}
    #hhswApp .hhsw-task .meta span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    #hhswApp .hhsw-task-preview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,300px)!important;align-items:start!important;gap:14px!important;min-height:0!important;max-width:100%!important;overflow:visible!important;contain:none!important}
    #hhswApp .hhsw-media-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;min-width:0!important;align-items:start!important;grid-auto-rows:auto!important;max-height:none!important;overflow:visible!important}
    #hhswApp .hhsw-media-grid.one{grid-template-columns:minmax(0,1fr)!important}
    #hhswApp .hhsw-media-tile{position:relative!important;width:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:16/10!important;border-radius:10px!important;overflow:hidden!important;background:rgba(4,18,31,.94)!important;cursor:zoom-in}
    #hhswApp .hhsw-media-tile img,#hhswApp .hhsw-media-tile video{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important;border-radius:0!important;background:rgba(4,18,31,.94)!important;transition:none!important}
    #hhswApp .hhsw-media-side{min-width:0!important;display:flex!important;flex-direction:column!important;gap:10px!important;color:#dfeeff!important}
    #hhswApp .hhsw-media-desc{max-height:118px;overflow:auto;overflow-wrap:anywhere;word-break:break-word;font-size:13px;line-height:1.55;font-weight:750}
    #hhswApp .hhsw-result-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
    #hhswApp .hhsw-result-fact{min-width:0!important;min-height:62px!important;padding:10px 12px!important;border:1px solid rgba(99,171,223,.36)!important;border-radius:10px!important;background:rgba(8,32,54,.92)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;overflow:hidden!important;box-shadow:none!important}
    #hhswApp .hhsw-result-fact.wide{grid-column:1/-1!important}
    #hhswApp .hhsw-result-fact b{color:#f7d69b!important;font-size:12px!important;line-height:1.2!important}
    #hhswApp .hhsw-result-fact span{color:#eef7ff!important;font-size:13px!important;font-weight:800!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
/* Preserve centering against the day/night generic button hover transform reset. */
/* Original video playback entry only. Card actions remain outside the player. */
#hhswApp .hhsw-task .hhsw-video-tile .hhsw-media-hover{display:none!important}
#hhswApp .hhsw-task .hhsw-video-tile{cursor:default!important}
html body #hhswApp .hhsw-task .hhsw-video-tile button.hhsw-video-play[data-hhsw-video-play]{position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:80px!important;height:80px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;border:2px solid rgba(255,255,255,.88)!important;border-radius:50%!important;background:rgba(4,15,24,.74)!important;color:#fff!important;box-shadow:0 4px 20px rgba(0,0,0,.3)!important;z-index:5!important;cursor:pointer!important;touch-action:manipulation;box-sizing:border-box!important;translate:none!important;rotate:none!important;scale:none!important;animation:none!important;transition:background-color .12s ease,border-color .12s ease!important}
html body #hhswApp .hhsw-task .hhsw-video-tile button.hhsw-video-play[data-hhsw-video-play]:hover{background:rgba(4,15,24,.9)!important}
html body #hhswApp .hhsw-task .hhsw-video-tile button.hhsw-video-play[data-hhsw-video-play]:focus-visible{outline:3px solid #f3c969!important;outline-offset:4px!important}
html body #hhswApp .hhsw-task .hhsw-video-tile button.hhsw-video-play[data-hhsw-video-play][hidden]{display:none!important}
html body #hhswApp .hhsw-task .hhsw-video-tile button.hhsw-video-play[data-hhsw-video-play] svg{width:32px;height:32px;pointer-events:none}
@media(max-width:600px){html body #hhswApp .hhsw-task .hhsw-video-tile button.hhsw-video-play[data-hhsw-video-play]{width:64px!important;height:64px!important}}

    #hhswApp .hhsw-media-hover{position:absolute;left:8px;right:8px;bottom:8px;display:flex;gap:6px;flex-wrap:wrap;opacity:0;transform:translateY(4px);transition:opacity .16s ease,transform .16s ease;pointer-events:none;z-index:3}
    #hhswApp .hhsw-media-tile:hover .hhsw-media-hover{opacity:1;transform:none;pointer-events:auto}
    #hhswApp .hhsw-share-pick{position:absolute;left:10px;top:10px;z-index:4;min-height:28px;padding:0 9px;border:1px solid rgba(78,214,255,.62);border-radius:999px;background:rgba(242,251,255,.94);color:#087aa0;font-size:12px;font-weight:900}
    #hhswApp .hhsw-media-download{position:absolute;right:10px;top:10px;z-index:4;width:34px;height:34px;border:1px solid rgba(255,255,255,.42);border-radius:50%;background:rgba(255,255,255,.92);color:#071423;display:grid;place-items:center;text-decoration:none;font-size:18px;font-weight:900}
    #hhswApp .hhsw-media-tile.hhsw-share-selected{outline:2px solid #25c8ee!important;outline-offset:2px!important}
    #hhswApp .hhsw-task-actions{display:flex!important;flex-wrap:wrap!important;max-width:100%!important;overflow:visible!important}
    #hhswApp .hhsw-task-actions button,#hhswApp .hhsw-task-actions a{white-space:nowrap}
    #hhswApp .hhsw-thread-list .hhsw-thread-item{min-height:42px!important;padding:6px 8px!important;margin-bottom:8px!important;border-radius:12px!important}
    #hhswApp .hhsw-thread-list .hhsw-thread-open{min-width:0!important;gap:8px!important}
    #hhswApp .hhsw-thread-list .hhsw-thread-open span{font-size:13px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important}
    #hhswApp .hhsw-thread-list .hhsw-thread-open i{width:16px!important;height:16px!important;min-width:16px!important;font-size:0!important;color:transparent!important;line-height:0!important;border-radius:999px!important;position:relative!important;overflow:hidden!important;border:1px solid rgba(143,185,220,.55)!important;background:rgba(7,25,43,.72)!important}
    #hhswApp .hhsw-thread-list .hhsw-thread-open i:after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;border-radius:999px;transform:translate(-50%,-50%);background:rgba(139,181,214,.76)}
    #hhswApp .hhsw-thread-list .hhsw-thread-item.hhsw-session-current{background:linear-gradient(135deg,#d4a557 0%,#bd873a 100%)!important;color:#071520!important;border-color:rgba(255,226,168,.86)!important;box-shadow:0 8px 18px rgba(199,143,59,.20)!important}
    @media(min-width:821px){
      html body #hhswApp .hhsw-studio{--threads:236px!important}
      html body #hhswApp .hhsw-threads{padding-left:12px!important;padding-right:12px!important;gap:12px!important}
      html body #hhswApp .hhsw-thread-list{align-content:start!important;grid-auto-rows:56px!important;row-gap:6px!important;gap:6px!important;padding-right:3px!important}
      html body #hhswApp .hhsw-thread-list .hhsw-thread-item{grid-template-columns:minmax(0,1fr) 24px 24px!important;height:56px!important;min-height:56px!important;max-height:56px!important;padding:6px 7px!important;margin-bottom:0!important}
      html body #hhswApp .hhsw-thread-list .hhsw-thread-item[data-session-card]{cursor:pointer!important}
      html body #hhswApp .hhsw-thread-list .hhsw-thread-item[data-session-card]:hover{border-color:rgba(109,180,224,.50)!important;background:rgba(10,39,64,.92)!important}
      html body #hhswApp .hhsw-thread-list .hhsw-thread-item.hhsw-session-current:hover{background:linear-gradient(135deg,#d4a557 0%,#bd873a 100%)!important}
      html body #hhswApp .hhsw-thread-list .hhsw-thread-open{width:100%!important;height:100%!important;cursor:pointer!important}
      html body #hhswApp .hhsw-thread-list .hhsw-thread-mini{width:24px!important;height:24px!important}
    }
    @container hhsw-task-card (max-width:720px){#hhswApp .hhsw-task-preview{grid-template-columns:minmax(0,1fr)!important}#hhswApp .hhsw-media-side{order:2!important}}
    @container hhsw-task-card (max-width:520px){#hhswApp .hhsw-result-facts{grid-template-columns:minmax(0,1fr)!important}#hhswApp .hhsw-result-fact.wide{grid-column:auto!important}#hhswApp .hhsw-prompt-row{grid-template-columns:minmax(0,1fr)!important}}
    @media(max-width:980px){html body #hhswApp .hhsw-stage.has-tasks .hhsw-composer,#hhswApp .hhsw-studio.threads-collapsed .hhsw-stage.has-tasks .hhsw-composer{position:fixed!important;left:14px!important;right:14px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:min(62dvh,420px)!important;margin:0!important}html body:has(.hhsw-rail[data-hanhai-global-rail="v1"]) #hhswApp .hhsw-stage.has-tasks .hhsw-composer{bottom:calc(76px + env(safe-area-inset-bottom))!important;max-height:min(62dvh,420px,calc(100dvh - 88px - env(safe-area-inset-bottom)))!important}#hhswApp .hhsw-return-latest{right:12px!important;bottom:calc(var(--hhsw-composer-reserve,260px) + 18px)!important}}
    @media(max-width:820px){#hhswApp .hhsw-task-list{width:100%!important}#hhswApp .hhsw-media-grid{grid-template-columns:minmax(0,1fr)!important}}
    