.hfm-media-dialog{width:600px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #343434;border-radius:20px;background:#191919;color:#fff;font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;overflow:hidden;box-shadow:0 20px 60px #0006}
.hfm-media-dialog[open]{display:flex;flex-direction:column}
.hfm-media-dialog::backdrop{background:rgba(0,0,0,.72)}
html:has(.hfm-media-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
.hfm-media-dialog *{box-sizing:border-box;animation:none;transition:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.hfm-media-dialog :is(h2,h3,p){margin:0}
.hfm-media-dialog :is(button,input,a,summary){font:inherit;-webkit-tap-highlight-color:transparent}
.hfm-media-dialog :is(button,input,a,summary):focus-visible{outline:2px solid #ff8800;outline-offset:3px}
.hfm-media-dialog [hidden]{display:none!important}
.hfm-dlg-header{position:relative;flex-shrink:0;padding:20px 48px 0;text-align:center}
.hfm-dlg-header h2{font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-.02em}
.hfm-dlg-header p{margin-top:6px;color:#bdbdbd;font-size:14px}
.hfm-dlg-close{position:absolute;top:15px;right:14px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:#292929;color:#bdbdbd;cursor:pointer}
.hfm-dlg-close svg{width:18px;height:18px}
.hfm-dlg-tabs{flex-shrink:0;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:16px 22px;padding:4px;border-radius:12px;background:#242424}
.hfm-dlg-tabs button{min-height:34px;border:0;border-radius:9px;color:#bdbdbd;background:transparent;font-weight:600;cursor:pointer}
.hfm-dlg-tabs button[aria-selected=true]{color:#fff;background:#3a3a3a}
.hfm-dlg-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 22px 16px;scrollbar-width:thin;scrollbar-color:#505050 transparent}
.hfm-dlg-criteria{background:#242424;border-radius:12px;overflow:hidden}
.hfm-dlg-platform{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:14px;padding:14px}
.hfm-dlg-platform+.hfm-dlg-platform{border-top:1px solid #ffffff0d}
.hfm-dlg-brand{display:flex;align-items:center;gap:10px;min-width:0}
.hfm-dlg-brand>img{width:26px;height:26px;flex:0 0 26px;object-fit:contain}
.hfm-dlg-brand strong{font-size:15px;font-weight:600;white-space:nowrap}
.hfm-dlg-brand-duo{display:flex;justify-content:center;align-items:center;gap:3px;width:26px;flex:0 0 26px}
.hfm-dlg-brand-duo img{width:14px;height:22px;object-fit:contain}
.hfm-dlg-platform p{color:#bdbdbd;font-size:14px;line-height:1.5}
.hfm-dlg-platform p strong{color:#fff;font-weight:500}
.hfm-dlg-benefits{padding:12px 4px 0;color:#bdbdbd;text-align:center;font-size:13px}
.hfm-dlg-rules{margin-top:12px;color:#bdbdbd;font-size:13px}
.hfm-dlg-rules summary{width:fit-content;margin:auto;cursor:pointer;color:#d0d0d0}
.hfm-dlg-rules>div{display:grid;gap:10px;padding:12px 4px 0}
.hfm-dlg-rules p{line-height:1.55}
.hfm-dlg-rules strong{font-weight:600;color:#fff}
.hfm-dlg-rules a,.hfm-dlg-rules a:is(:link,:visited,:hover,:active){color:#ffae52;text-decoration:underline;text-underline-offset:3px}
.hfm-dlg-result{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.hfm-dlg-result h3{font-size:16px;font-weight:600}
.hfm-dlg-result p{font-size:13px;color:#bdbdbd;margin-top:2px}
.hfm-dlg-result output{font-size:26px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2}
.hfm-dlg-range-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#bdbdbd}
.hfm-dlg-range-label output{font-size:16px;font-weight:600;color:#fff;font-variant-numeric:tabular-nums}
.hfm-dlg-range{display:block;width:100%;height:24px;appearance:none;-webkit-appearance:none;margin:2px 0 10px;padding:0;border:0;background:linear-gradient(to right,#ff8800 0,#ff8800 var(--range-progress),#505050 var(--range-progress),#505050 100%) center/100% 4px no-repeat;cursor:pointer}
.hfm-dlg-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;border:0;border-radius:50%;background:#ff8800;box-shadow:0 0 0 2px #191919}
.hfm-dlg-range::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#ff8800}
.hfm-dlg-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hfm-dlg-presets button{display:grid;gap:2px;min-width:0;min-height:55px;padding:8px 4px;background:#242424;border:1px solid transparent;border-radius:10px;color:#fff;cursor:pointer;font-variant-numeric:tabular-nums}
.hfm-dlg-presets button span{font-size:13px;color:#bdbdbd}
.hfm-dlg-presets button strong{font-size:16px;font-weight:600}
.hfm-dlg-presets button[aria-pressed=true]{border-color:#7b7b7b;background:#303030}
.hfm-dlg-bonus{display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px 12px;background:#242424;border-radius:10px;cursor:pointer}
.hfm-dlg-bonus input{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border:1px solid #686868;border-radius:5px;background:#343434;flex-shrink:0;cursor:pointer}
.hfm-dlg-bonus input:checked{background:#ff8800 url('/assets/images/media/checkmark-tidy-20261027.svg') no-repeat center/12px 12px;border-color:#ff8800}
.hfm-dlg-bonus strong{font-weight:600;margin-left:auto}
.hfm-dlg-minimum{font-size:12px;color:#bdbdbd;margin-top:8px!important;text-align:center}
.hfm-dlg-footer{flex-shrink:0;border-top:1px solid #ffffff0d;padding:14px 22px 20px}
.hfm-dlg-footer>p{color:#bdbdbd;text-align:center;font-size:13px;margin-bottom:10px}
.hfm-dlg-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hfm-dlg-actions a,.hfm-dlg-actions a:is(:link,:visited,:hover,:active,:focus-visible){display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:44px;padding:10px;background:#292929;border:0;border-radius:10px;font-size:15px;font-weight:600;line-height:22px;color:#fff;text-decoration:none;filter:none;transform:none;box-shadow:none}
.hfm-dlg-actions img{width:22px;height:22px;flex-shrink:0;object-fit:contain}
@media(max-width:600px){.hfm-dlg-header{padding:18px 42px 0}.hfm-dlg-header h2{font-size:20px}.hfm-dlg-header p{font-size:13px}.hfm-dlg-tabs{margin:14px 16px}.hfm-dlg-content{padding:0 16px 14px}.hfm-dlg-footer{padding:12px 16px 16px}.hfm-dlg-platform{grid-template-columns:1fr;padding:12px 14px;gap:5px}.hfm-dlg-brand strong{font-size:14px}.hfm-dlg-brand>img{width:22px;height:22px;flex-basis:22px}.hfm-dlg-brand-duo{width:22px;flex-basis:22px}.hfm-dlg-platform p{font-size:13px}.hfm-dlg-platform p strong{font-weight:600}.hfm-dlg-result h3{font-size:15px}.hfm-dlg-result p{font-size:12px}.hfm-dlg-result output{font-size:24px}}

/* Short, user-triggered motion limited to the media dialog. */
.hfm-media-dialog{box-sizing:border-box}
.hfm-media-dialog[open]{animation:hfm-dialog-enter 180ms cubic-bezier(.2,.7,.2,1) both}
.hfm-media-dialog[open]::backdrop{animation:hfm-backdrop-enter 180ms ease-out both}
.hfm-media-dialog[data-closing]{animation:hfm-dialog-exit 140ms ease-in both;pointer-events:none}
.hfm-media-dialog[data-closing]::backdrop{animation:hfm-backdrop-exit 140ms ease-in both}
.hfm-dlg-content [role=tabpanel]:not([hidden]){animation:hfm-panel-enter 160ms ease-out both}
.hfm-dlg-rules[open]>div{animation:hfm-panel-enter 160ms ease-out both}
.hfm-dlg-tabs button{transition:background-color 150ms ease,color 150ms ease}
@keyframes hfm-dialog-enter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes hfm-dialog-exit{from{opacity:var(--hfm-close-opacity,1);transform:var(--hfm-close-transform,none)}to{opacity:0;transform:translateY(5px) scale(.99)}}
@keyframes hfm-backdrop-enter{from{opacity:0}to{opacity:1}}
@keyframes hfm-backdrop-exit{from{opacity:var(--hfm-close-backdrop,1)}to{opacity:0}}
@keyframes hfm-panel-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hfm-media-dialog,.hfm-media-dialog::backdrop,.hfm-media-dialog *{animation:none!important;transition:none!important}}
