/* بازخورد رابط؛ فقط با کلاس فعال همان وب‌اپ/مرورگر موبایل. */
body.alvand-pwa-feedback-enabled :is(a,button,input[type="submit"],input[type="button"],[role="button"]):not(:disabled):not([aria-disabled="true"]):is(:active,.alvand-pwa-tapped){filter:brightness(.9);outline-offset:2px}
body.alvand-pwa-feedback-enabled .alvand-pwa-waiting{position:relative;box-shadow:inset 0 0 0 2px #c92a3a66}
body.alvand-pwa-feedback-enabled .alvand-pwa-control-spinner{position:absolute;inset-block-start:3px;inset-inline-end:3px;display:block;width:13px;height:13px;border:2px solid currentColor;border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;pointer-events:none;animation:alvand-pwa-spin .75s linear infinite}
#alvand-pwa-progress{position:fixed;z-index:10020;inset:0 0 auto;height:3px;overflow:hidden;background:#c92a3a20;pointer-events:none}
#alvand-pwa-progress::after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:35%;background:#b52235;animation:alvand-pwa-progress 1.2s ease-in-out infinite}
#alvand-pwa-feedback{box-sizing:border-box;position:fixed;z-index:10021;inset:calc(8px + env(safe-area-inset-top,0px)) 12px auto;max-width:480px;margin-inline:auto;direction:rtl;font:inherit;font-size:14px;line-height:1.8;color:#26343e;pointer-events:none;max-height:40vh;max-height:40dvh;overflow:auto;overscroll-behavior:contain}
body.admin-bar #alvand-pwa-feedback{inset-block-start:calc(54px + env(safe-area-inset-top,0px))}
#alvand-pwa-feedback .alvand-pwa-feedback-row{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border:1px solid #e5dfe1;border-radius:13px;box-shadow:0 4px 20px #17212b24}
#alvand-pwa-feedback p{margin:0;font:inherit;color:inherit;overflow-wrap:anywhere}
#alvand-pwa-feedback .alvand-pwa-feedback-row p{flex:1;min-width:0}
#alvand-pwa-feedback button{box-sizing:border-box;display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:9px;background:#eef0f2;color:#26343e;font:inherit;font-size:25px;line-height:1;cursor:pointer;pointer-events:auto;flex:none}
#alvand-pwa-feedback button:focus-visible{outline:3px solid #26343e;outline-offset:2px}
#alvand-pwa-feedback [data-tone="success"]{border-color:#b7d6c3;background:#f2faf5;color:#244d34}
#alvand-pwa-feedback [data-tone="notice"],#alvand-pwa-feedback .alvand-pwa-feedback-network{background:#fff8e4;border:1px solid #dfc68a;color:#493c22}
#alvand-pwa-feedback .alvand-pwa-feedback-network{padding:10px 12px;border-radius:13px;margin-bottom:8px;box-shadow:0 4px 20px #17212b18}
#alvand-pwa-feedback [hidden],#alvand-pwa-progress[hidden],body:not(.alvand-pwa-feedback-enabled) #alvand-pwa-feedback,body:not(.alvand-pwa-feedback-enabled) #alvand-pwa-progress{display:none!important}
@keyframes alvand-pwa-spin{to{transform:rotate(360deg)}}
@keyframes alvand-pwa-progress{from{transform:translateX(300%)}to{transform:translateX(-300%)}}
@media(prefers-reduced-motion:reduce){body.alvand-pwa-feedback-enabled .alvand-pwa-control-spinner{animation:none;border-style:dotted}#alvand-pwa-progress::after{animation:none;width:35%;inset-inline-start:32%;opacity:.65}}
