/* Uses the same variables as the current three workspace themes. */
.hhsw-asset-toolbar{align-items:flex-start;gap:16px;flex-wrap:wrap}.hhsw-asset-tabs,.hhsw-asset-tools{flex-wrap:wrap;gap:8px}.hhsw-asset-summary{margin:16px 0}
.hhsw-library-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:16px}.hhsw-library-intro p{margin:8px 0 0;color:var(--muted);font-size:14px}
.hhsw-library-preview{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:190px;background:linear-gradient(145deg,var(--panel),var(--bg));color:var(--text);text-decoration:none}.hhsw-library-preview>span{font-size:48px;color:var(--accent)}.hhsw-library-preview small{color:var(--muted)}
.hhsw-library-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}.hhsw-library-actions button,.hhsw-library-actions a,.hhsw-library-more button,.hhsw-library-dialog button:not(.hhsw-primary){border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:var(--panel);color:var(--text);font:inherit;text-decoration:none;cursor:pointer}.hhsw-library-actions .active{border-color:var(--accent)}.hhsw-library-native h3,[data-library-kind=subject] h3{font-size:16px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}.hhsw-library-native p{color:var(--muted);margin:0 0 10px}.hhsw-library-native .hhsw-asset-card-body>small,[data-library-kind=subject] .hhsw-asset-card-body>small{color:var(--muted)}.hhsw-library-more{text-align:center;padding:20px}
.hhsw-library-backdrop{position:fixed;inset:0;z-index:15000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:24px}.hhsw-library-dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:18px;width:min(760px,100%);max-height:90vh;overflow:auto;padding:24px;box-shadow:0 24px 90px rgba(0,0,0,.3)}.hhsw-library-dialog header{display:flex;justify-content:space-between;align-items:center;gap:20px}.hhsw-library-dialog h2{font-size:21px;margin:0 0 18px}.hhsw-library-dialog label{display:grid;gap:9px;color:var(--text)}.hhsw-library-dialog input{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--text);font:inherit;width:100%;box-sizing:border-box}.hhsw-library-dialog footer{display:flex;justify-content:flex-end;gap:12px}.hhsw-library-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;max-height:340px;overflow:auto;margin:18px 0}.hhsw-library-choices button{padding:0!important;overflow:hidden;text-align:left}.hhsw-library-choices button.selected{outline:2px solid var(--accent);outline-offset:1px}.hhsw-library-choices img{width:100%;height:100px;object-fit:cover;display:block}.hhsw-library-choices span{display:block;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.hhsw-library-upload{padding:20px 0}.hhsw-library-upload small,.hhsw-library-message{color:var(--muted)}.hhsw-library-message{min-height:20px}
@media(max-width:680px){.hhsw-library-intro{align-items:flex-start;flex-direction:column}.hhsw-library-backdrop{padding:12px}.hhsw-library-dialog{padding:18px}.hhsw-asset-tabs{width:100%}}

/* Compact gallery; source order remains chronological row-first masonry. */
body #hhswApp .hhsw-gallery-card{overflow:hidden!important;border-radius:15px!important;background:var(--hhv-surface,var(--panel))!important;min-width:0!important;padding:0!important}
body #hhswApp .hhsw-gallery-card .hhsw-asset-media{display:block!important;position:relative!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:var(--hhsw-card-ar, auto)!important;overflow:hidden!important;background:var(--hhv-surface-2,var(--bg))!important;cursor:pointer}
body #hhswApp .hhsw-gallery-card .hhsw-asset-media img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important}
body #hhswApp .hhsw-gallery-cover{display:block!important;position:relative!important;min-height:0!important;aspect-ratio:var(--hhsw-card-ar, auto);width:100%!important;overflow:hidden}
body #hhswApp .hhsw-gallery-cover img{display:block;width:100%;height:auto;object-fit:contain}
body #hhswApp .hhsw-gallery-cover img[hidden]{display:none!important}
body #hhswApp#hhswApp .hhsw-gallery-play,body #hhswApp#hhswApp .hhsw-gallery-start,body #hhswApp#hhswApp .hhsw-video-play,body #hhswApp#hhswApp [data-gallery-start],body #hhswApp#hhswApp .hhsw-gallery-start:hover,body #hhswApp#hhswApp .hhsw-gallery-start:focus,body #hhswApp#hhswApp .hhsw-gallery-start:focus-visible,body #hhswApp#hhswApp .hhsw-gallery-start:active{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;transition:box-shadow .16s ease,background-color .14s ease!important;z-index:10!important;border-radius:50%!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;display:grid!important;place-items:center!important;background:rgba(18,15,11,.84)!important;background-color:rgba(18,15,11,.84)!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid rgba(255,255,255,.24)!important;font-size:18px!important;line-height:1!important;box-shadow:0 4px 14px rgba(0,0,0,.34)!important;padding:0!important;cursor:pointer}
body #hhswApp#hhswApp :is(.hhsw-gallery-play,.hhsw-gallery-start,.hhsw-video-play,[data-gallery-start]) :is(svg,i,span){color:#fff!important;-webkit-text-fill-color:#fff!important;fill:currentColor!important;stroke:currentColor!important}
body #hhswApp .hhsw-gallery-play{pointer-events:none}
body #hhswApp .hhsw-gallery-model{min-height:190px!important;background:linear-gradient(140deg,var(--hhv-surface-2,var(--panel)),var(--hhv-surface,var(--bg)))}
body #hhswApp .hhsw-gallery-model-icon{display:grid;place-items:center;min-height:190px;font-size:72px;color:var(--hhv-ink-muted,var(--muted))}
body #hhswApp .hhsw-gallery-type{position:absolute;bottom:10px;left:10px;padding:3px 7px;border-radius:5px;background:#120f0bd9;color:#fff;font-size:11px}
body #hhswApp .hhsw-gallery-unavailable{display:grid;place-items:center;min-height:160px;color:var(--hhv-ink-muted,var(--muted));font-size:13px}
body #hhswApp .hhsw-gallery-caption{display:flex!important;align-items:center;gap:10px;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:11px 13px!important;background:transparent!important;border:0!important;border-radius:0!important;color:var(--hhv-ink,var(--text))!important;text-align:left!important;cursor:pointer}
body #hhswApp .hhsw-gallery-caption>b{display:block;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.45}
body #hhswApp .hhsw-gallery-caption>span{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--hhv-ink-muted,var(--muted));font-size:11px;margin-top:0;white-space:nowrap}
body #hhswApp .hhsw-gallery-caption small{overflow:hidden;text-overflow:ellipsis;font-size:inherit}
body #hhswApp .hhsw-gallery-caption time{flex-shrink:0}
body #hhswApp .hhsw-gallery-card .hhsw-asset-favorite{width:34px!important;height:34px!important;top:9px!important;right:9px!important;background:#120f0bd9!important;color:#fff!important;z-index:2}
body #hhswApp .hhsw-gallery-detail-video{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;box-sizing:border-box!important}
body #hhswApp .hhsw-gallery-detail-video .hhsw-gallery-play{display:none!important}
body #hhswApp .hhsw-gallery-detail-video .hhsw-gallery-cover{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:var(--hhsw-preview-max-h,calc(min(76vh,780px) - 36px))!important;min-height:0!important;margin:0 auto!important;border:0!important;overflow:hidden!important;box-sizing:border-box!important}
body #hhswApp .hhsw-gallery-detail-video :is(img,video,model-viewer){aspect-ratio:auto!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:var(--hhsw-preview-max-h,calc(min(76vh,780px) - 36px))!important;object-fit:contain!important;display:block!important;margin:0 auto!important;box-sizing:border-box!important}
body #hhswApp .hhsw-gallery-caption:focus-visible,body #hhswApp .hhsw-gallery-start:focus-visible,body #hhswApp .hhsw-gallery-card .hhsw-asset-media:focus-visible{outline:2px solid var(--accent)!important;outline-offset:-3px}
@media(max-width:680px){body #hhswApp .hhsw-gallery-caption{padding:10px!important}body #hhswApp .hhsw-gallery-caption>b{font-size:13px}body #hhswApp .hhsw-gallery-caption>span{font-size:10px}body #hhswApp .hhsw-gallery-card .hhsw-asset-media img{max-height:360px!important}}
