/* HWGrow Media Upload UX v1.0.0 */
.hwg-mux-progress{--mux-bg:#fff;--mux-fg:#1d2a1f;--mux-muted:#5b6b5e;--mux-line:#d9e3da;--mux-fill:#2f8f46;--mux-err:#b3261e;box-sizing:border-box;width:100%;max-width:520px;margin:8px 0;padding:10px 12px;border:1px solid var(--mux-line);border-radius:10px;background:var(--mux-bg);color:var(--mux-fg);font:500 14px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.hwg-mux-progress.is-dark,.atbs-dark-mode .hwg-mux-progress{--mux-bg:#1c211d;--mux-fg:#eef3ee;--mux-muted:#a9b5aa;--mux-line:#344036;--mux-fill:#57c46f;--mux-err:#ff8a80}
.hwg-mux-progress.is-floating{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:calc(100% - 32px);z-index:2147483000}
.hwg-mux-line{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.hwg-mux-pct{font-variant-numeric:tabular-nums;font-weight:700}
.hwg-mux-track{position:relative;height:8px;margin:7px 0 5px;border-radius:99px;background:var(--mux-line);overflow:hidden}
.hwg-mux-fill{height:100%;width:0;border-radius:99px;background:var(--mux-fill);transition:width .25s ease}
.hwg-mux-progress.is-indeterminate .hwg-mux-fill{width:35%!important;animation:hwg-mux-slide 1.1s ease-in-out infinite}
@keyframes hwg-mux-slide{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
@media (prefers-reduced-motion:reduce){.hwg-mux-progress.is-indeterminate .hwg-mux-fill{animation:none;width:100%!important;opacity:.6}}
.hwg-mux-detail{color:var(--mux-muted);font-size:13px}
.hwg-mux-progress.is-done .hwg-mux-pct{color:var(--mux-fill)}
.hwg-mux-progress.is-error{border-color:var(--mux-err)}
.hwg-mux-progress.is-error strong,.hwg-mux-progress.is-error .hwg-mux-detail{color:var(--mux-err)}
.hwg-mux-progress.is-error .hwg-mux-track{display:none}
.hwg-mux-progress.is-note{font-weight:600}
.hwg-mux-dismiss{margin-top:6px;padding:4px 10px;border:1px solid var(--mux-line);border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.hwg-mux-add-video{display:inline-flex;align-items:center;gap:4px;margin:4px 6px 4px 0;padding:6px 12px;border:1px solid #c9d6cb;border-radius:8px;background:#f4f8f4;color:#1d2a1f;font:600 13px system-ui,sans-serif;cursor:pointer}
.hwg-mux-add-video::before{content:"▶";font-size:10px}
.atbs-dark-mode .hwg-mux-add-video{background:#232a24;border-color:#3a473c;color:#eef3ee}
.hwg-mux-player{display:block;max-width:560px;margin:8px 0}
.hwg-mux-player video{display:block;width:100%;max-height:70vh;border-radius:10px;background:#000}
.hwg-mux-player.is-embed{position:relative;aspect-ratio:16/9}
.hwg-mux-player.is-embed iframe,.hwg-mux-lite{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:10px}
.hwg-mux-lite{background:#000 center/cover no-repeat;cursor:pointer;padding:0}
.hwg-mux-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:44px;border-radius:12px;background:rgba(0,0,0,.72);color:#fff;font-size:20px;line-height:44px;text-align:center}
.hwg-mux-player-chat{max-width:360px}
.hwg-mux-back{display:inline-block;margin-top:4px;font-size:13px;font-weight:600}
.hwg-mux-share-row{margin:6px 0 12px}
.hwg-mux-share{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 14px;border:1px solid #dce6df;border-radius:999px;background:#f1f6f2;color:#20362a;-webkit-text-fill-color:#20362a;font:600 13px/1.2 Montserrat,Arial,sans-serif;text-transform:none;letter-spacing:normal;box-shadow:none;cursor:pointer;transition:background .15s,border-color .15s}
.hwg-mux-share:hover{border-color:#3d8a55;background:#e8f2eb}
.hwg-mux-share::before{content:"↗"}
.atbs-dark-mode .hwg-mux-share{background:#233b2d;border-color:#425c4b;color:#edf3ef;-webkit-text-fill-color:#edf3ef}
.atbs-dark-mode .hwg-mux-share:hover{background:#304b39;border-color:#86ba96}
.hwg-mux-landed{outline:3px solid #57c46f;outline-offset:4px;border-radius:12px;transition:outline-color 1s}
/* Share sheet: matches the journal "Feature or share photo" sheet */
.hwg-mux-sheet{--pa-bg:#fff;--pa-text:#20362a;--pa-field:#f1f6f2;--pa-line:#dce6df;box-sizing:border-box;position:fixed;background:var(--pa-bg);color:var(--pa-text);border:1px solid var(--pa-line);border-radius:22px;padding:24px;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #0005;font:14px/1.5 Montserrat,Arial,sans-serif;text-align:left}
.hwg-mux-sheet.is-dark{--pa-bg:#17281e;--pa-text:#edf3ef;--pa-field:#233b2d;--pa-line:#425c4b}
.hwg-mux-sheet::backdrop{background:#0008}
.hwg-mux-sheet h2{font:700 18px/1.4 Montserrat,Arial,sans-serif;color:var(--pa-text);margin:0 40px 16px 0;padding:0;text-transform:none;letter-spacing:normal}
.hwg-mux-sheet .hwg-mux-preview{display:block!important;width:100%!important;max-width:100%!important;height:140px!important;max-height:140px!important;aspect-ratio:auto!important;object-fit:contain!important;background:var(--pa-field);border-radius:10px;margin:0 0 16px!important}
.hwg-mux-sheet button{box-sizing:border-box;font:inherit;color:var(--pa-text);-webkit-text-fill-color:var(--pa-text);background:var(--pa-field);border:1px solid var(--pa-line);border-radius:10px;padding:12px;text-align:left;min-height:44px;margin:0;text-transform:none;letter-spacing:normal;cursor:pointer;box-shadow:none}
.hwg-mux-sheet .hwg-mux-close{position:absolute;right:10px;top:10px;width:40px;min-height:40px;padding:0;text-align:center;font-size:26px;line-height:1;background:transparent;border:0}
.hwg-mux-options{display:grid;gap:10px}
.hwg-mux-options[hidden]{display:none}
.hwg-mux-options button{position:relative;width:100%;padding:15px 36px 15px 16px;border-radius:14px;transition:background .15s,border-color .15s}
.hwg-mux-options button::after{content:'›';position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:24px;opacity:.65}
.hwg-mux-options button:not(:disabled):hover{border-color:#3d8a55;background:#e8f2eb}
.hwg-mux-sheet.is-dark .hwg-mux-options button:not(:disabled):hover{background:#304b39;border-color:#86ba96}
.hwg-mux-options strong,.hwg-mux-options span{display:block;color:inherit}
.hwg-mux-options strong{font-size:14px;font-weight:700}
.hwg-mux-options span{font-size:12px;margin-top:3px;line-height:1.4;opacity:.8}
.hwg-mux-sheet button:disabled{opacity:.55;cursor:default}
.hwg-mux-sheet :focus-visible{outline:2px solid #70ad42;outline-offset:2px}
.hwg-mux-status{font:inherit;color:var(--pa-text);margin:12px 0 0}
.hwg-mux-status:empty{display:none}
.hwg-mux-status.hwg-mux-success{padding:22px 16px;text-align:center;border-radius:14px;background:#e8f5eb;color:#175a2b;border:1px solid #b7d9bf}
.hwg-mux-sheet.is-dark .hwg-mux-status.hwg-mux-success{background:#203d2a;color:#ddf7e3;border-color:#507b5b}
.hwg-mux-success::before{content:'✓';display:block;font-size:30px;font-weight:700;margin-bottom:8px}
.hwg-mux-success strong,.hwg-mux-success span{display:block;color:inherit}
.hwg-mux-success span{font-size:12px;margin-top:7px;opacity:.8}
.hwg-mux-status input{box-sizing:border-box;display:block;width:100%;margin-top:6px;padding:10px;color:var(--pa-text);background:var(--pa-field);font:inherit;border:1px solid var(--pa-line)}
@media(max-height:600px){.hwg-mux-sheet .hwg-mux-preview{height:72px!important;max-height:72px!important}}
@media(prefers-reduced-motion:reduce){.hwg-mux-options button{transition:none}}

/* Video tiles: no inline controls, just ▶ and length; tap opens the viewer */
.hwg-mux-tile{position:relative;cursor:pointer}
.hwg-mux-tile:focus-visible{outline:2px solid #70ad42;outline-offset:3px}
body.single-hwg_journal .hwg-jvp.hwg-mux-tile .hwg-jvp-controls,body.single-hwg_journal .hwg-jvp.hwg-mux-tile .hwg-jvp-return,body.single-hwg_journal .hwg-jvp.hwg-mux-tile .hwg-jvp-status,body.single-hwg_journal .hwg-jvp.hwg-mux-tile .hwg-jvp-play{display:none!important}
.hwg-mux-player.is-own video{cursor:pointer}
.hwg-mux-badge{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:8px;padding:10px 16px 10px 14px;border:1px solid #73847a;border-radius:999px;background:rgba(18,26,21,.8);color:#fff;font:600 15px/1 Montserrat,Arial,sans-serif;pointer-events:none;box-shadow:0 4px 18px #0006;transition:background .15s}
.hwg-mux-badge-play{font-size:16px}
.hwg-mux-badge-time:empty{display:none}
.hwg-mux-tile:hover .hwg-mux-badge{background:rgba(36,61,45,.95)}
/* Video viewer: same frame, toolbar and buttons as the photo viewer */
#hwg-mux-video-viewer{position:fixed;inset:0;box-sizing:border-box;margin:auto;padding:0;width:min(1100px,96vw);height:min(900px,94dvh);max-width:96vw;max-height:94dvh;border:1px solid #59645d;border-radius:16px;background:#121a15;color:#fff;font:16px/1.4 Arial,sans-serif;box-shadow:0 18px 70px #0008;overflow:hidden;overscroll-behavior:contain}
#hwg-mux-video-viewer::backdrop{background:rgba(0,0,0,.82)}
#hwg-mux-video-viewer[open]{display:flex;flex-direction:column}
#hwg-mux-video-viewer .hwg-pv-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px;flex:none;background:#18281e;color:#fff}
#hwg-mux-video-viewer .hwg-mux-vv-label{min-width:60px}
#hwg-mux-video-viewer .hwg-pv-counter{font-weight:600}
#hwg-mux-video-viewer .hwg-pv-controls{display:flex;align-items:center;gap:6px}
#hwg-mux-video-viewer .hwg-pv-button{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:8px 12px;margin:0;border:1px solid #73847a;border-radius:9px;background:#243d2d;color:#fff;-webkit-text-fill-color:#fff;font:600 16px/1.2 Arial,sans-serif;letter-spacing:normal;text-transform:none;text-decoration:none;box-shadow:none;cursor:pointer;opacity:1}
#hwg-mux-video-viewer .hwg-pv-button:hover,#hwg-mux-video-viewer .hwg-pv-button:focus-visible{background:#36573f;outline:2px solid #b4f38c;outline-offset:1px}
#hwg-mux-video-viewer .hwg-pv-button[hidden]{display:none}
#hwg-mux-video-viewer .hwg-pv-stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:pan-y}
#hwg-mux-video-viewer .hwg-mux-vv-video{position:absolute!important;inset:8px!important;display:block!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:contain!important;background:transparent!important;aspect-ratio:auto!important}
#hwg-mux-video-viewer .hwg-pv-status{position:absolute;inset:40% 12px auto;margin:0;color:#fff;font:16px/1.4 Arial,sans-serif;text-align:center;pointer-events:none}
#hwg-mux-video-viewer .hwg-pv-status:empty{display:none}
#hwg-mux-video-viewer .hwg-pv-help{margin:0;padding:8px 12px;color:#e0e9e3;background:#18281e;font:13px/1.4 Arial,sans-serif;text-align:center}
#hwg-mux-video-viewer .hwg-pv-nav{position:absolute;top:50%;z-index:2;width:48px;height:64px;margin-top:-32px;padding:0;font-size:32px;line-height:1;background:rgba(16,28,21,.72)}
#hwg-mux-video-viewer .hwg-pv-previous{left:10px}
#hwg-mux-video-viewer .hwg-pv-next{right:10px}
#hwg-mux-video-viewer .hwg-pv-nav:disabled{opacity:.3;cursor:default}
@media(max-width:600px){#hwg-mux-video-viewer{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}#hwg-mux-video-viewer .hwg-pv-toolbar{padding-top:max(10px,env(safe-area-inset-top))}#hwg-mux-video-viewer .hwg-pv-help{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
@media(pointer:coarse){#hwg-mux-video-viewer .hwg-pv-help{display:none}#hwg-mux-video-viewer .hwg-pv-nav{width:40px;height:56px;margin-top:-28px;font-size:26px;top:40%}#hwg-mux-video-viewer .hwg-pv-previous{left:4px}#hwg-mux-video-viewer .hwg-pv-next{right:4px}}

/* Players inside chats, DMs and comments keep their own size: room styles for buttons/images must not reshape them */
.hwg-mux-player{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:560px!important;margin:8px 0!important;padding:0!important;float:none!important}
.hwg-mux-player.hwg-mux-player-chat{max-width:360px!important}
.hwg-mux-player.is-embed{position:relative!important;height:auto!important;aspect-ratio:16/9!important;overflow:hidden!important;border-radius:12px!important;background:#000!important}
@supports not (aspect-ratio:16/9){.hwg-mux-player.is-embed{height:0!important;padding-top:56.25%!important}}
.hwg-mux-player.is-embed iframe,.hwg-mux-player .hwg-mux-lite{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;transform:none!important;cursor:pointer}
.hwg-mux-player .hwg-mux-thumb{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:cover!important}
.hwg-mux-player .hwg-mux-play{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;display:flex!important;align-items:center;justify-content:center;width:68px!important;height:48px!important;border:1px solid #73847a;border-radius:14px;background:rgba(18,26,21,.82)!important;color:#fff!important;font-size:26px!important;line-height:1!important;box-shadow:0 4px 18px #0006}
.hwg-mux-player .hwg-mux-lite:hover .hwg-mux-play{background:rgba(36,61,45,.95)!important}
.hwg-mux-player.is-own video{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:70vh!important;margin:0!important;border-radius:12px!important;background:#000!important;object-fit:contain!important}
.hwg-mux-badge-play{display:inline-flex;font-size:18px}
.hwg-mux-badge-play svg,.hwg-mux-play svg{display:block}
/* Tall phone videos stay compact in chats and comments, like photos */
.hwg-mux-player.is-own{width:fit-content!important;max-width:100%!important}
.hwg-mux-player.is-own video{width:auto!important;max-width:100%!important;max-height:420px!important}
.hwg-mux-player.hwg-mux-player-chat.is-own video{max-height:340px!important}
.hwg-dm-bubble .hwg-mux-player.is-embed{width:min(300px,68vw)!important}
.hwg-mux-file{display:none!important}
