/* ==========================================================================
   گزارش‌های جاده‌ای پیشرفته حین مسیریابی و نقشه عمومی — تم اختصاصی سامانه همینجا
   - طراحی یکپارچه با تم رنگی برند همینجا (Persian Emerald / Teal #0F9F8A)
   - گرید دایره‌ای مدرن و کاملاً هم‌شکل برای دسته‌ها و زیرمجموعه‌ها
   - تشخیص هوشمند و خودکار جهت حرکت خودرو بر اساس ژیروسکوپ و GPS
   - تایمر هوشمند ۴ ثانیه‌ای برای عدم حواس‌پرتی راننده
   - شیشه تیره لوکس (Obsidian Glassmorphism) با انیمیشن‌های روان
   ========================================================================== */

/* ---------- دکمه شناور FAB ---------- */
.pm-road-report-fab {
    position: fixed;
  left: 10px;
  bottom: calc(191px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #10b981 0%, #0F9F8A 55%, #087F70 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 159, 138, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: none;
    place-items: center;
    font-size: 24px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pm-road-report-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 159, 138, 0.55);
}

.pm-road-report-fab:active {
    transform: scale(0.92);
}

/* نمایش در حالت ناوبری */
body.hmj-navigating .pm-road-report-fab {
    display: grid !important;
}

/* ---------- باتم‌شیت گزارش‌ها و انتخاب ماشین (Minimal Modern Sheet) ---------- */
.pm-rr-sheet {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pm-rr-sheet[hidden] {
    display: none !important;
}

.pm-rr-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
    animation: pmRrFadeIn 0.2s ease forwards;
}

@keyframes pmRrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pm-rr-sheet-card {
    position: relative;
    width: min(500px, 100%);
    max-height: min(85vh, 640px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.14), 0 -2px 6px rgba(0, 0, 0, 0.04);
    padding: 10px 18px 20px;
    pointer-events: auto;
    overflow-y: hidden;
    overflow-x: hidden;
    animation: pmRrSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    direction: rtl;
    font-family: inherit;
    color: #0f172a;
}

@keyframes pmRrSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0.8;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* هندل بالای باتم‌شیت */
.pm-rr-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: #cbd5e1;
    margin: 4px auto 14px;
}

/* سربرگ شیت */
.pm-rr-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.pm-rr-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pm-rr-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pm-rr-sheet-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-rr-sheet-hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.pm-rr-sheet-close,
.pm-rr-sheet-back {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.pm-rr-sheet-close:hover,
.pm-rr-sheet-back:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* نشانک والد در هدر زیردسته */
.pm-rr-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--hmj-primary, #0F9F8A);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.pm-rr-header-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    display: inline-block;
}

/* ---------- شبکه مینیمال دسته‌ها و زیرمجموعه‌ها ---------- */
.pm-rr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    padding: 4px 2px 14px;
    max-height: 48vh;
    overflow-y: auto;
}

@media (max-width: 440px) {
    .pm-rr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 6px;
    }
}

@media (max-width: 330px) {
    .pm-rr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pm-rr-tile {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: 12px;
    //transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
}

/* هاور ساده و مینیمال بدون پرش یا بزرگ‌نمایی زننده */
.pm-rr-tile:hover {
    background: #f8fafc;
}

.pm-rr-tile:active {
    transform: scale(0.97);
}

/* آیکون دایره‌ای ساده و مینیمال */
.pm-rr-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #334155;
    font-size: 22px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #e2e8f0;
    position: relative;
   // transition: all 0.15s ease;
}

.pm-rr-tile:hover .pm-rr-avatar {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.pm-rr-avatar i {
    transition: none;
}

.pm-rr-sheet-head .pm-rr-avatar-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.pm-rr-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    background-color: transparent;
}

.pm-rr-avatar-img[src*="no-image.png"] {
    object-fit: contain;
    padding: 8px;
    opacity: 0.6;
}

/* استایل مینیمال آیتم‌های زیرمجموعه */
.pm-rr-sub-tile {
    gap: 8px;
}

.pm-rr-sub-tile .pm-rr-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pm-rr-sub-tile .pm-rr-tile-name {
    font-size: 12px;
}

/* نشان تعداد زیرمجموعه‌ها روی دسته‌ها */
.pm-rr-tile-badge {
    position: absolute;
    top: -3px;
    z-index: 10;
    right: -3px;
    background: #f1f5f9;
    color: #0F9F8A;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    border: 1.5px solid #0F9F8A;
}

/* حالت انتخاب‌شده: حاشیه خطی تمیز و تخت بدون افکت نئونی */
.pm-rr-tile.is-selected .pm-rr-avatar {
    border-color: var(--hmj-primary, #0F9F8A);
    background: linear-gradient(145deg, #f0fdf4 0%, #e6fcf5 100%);
    box-shadow: 0 4px 16px rgba(15, 159, 138, 0.25), 0 0 0 1.5px var(--hmj-primary, #0F9F8A);
    transform: translateY(-1.5px);
}

.pm-rr-tile-check {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #10b981, #0F9F8A);
    color: #ffffff;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 159, 138, 0.4);
    z-index: 10;
}

.pm-rr-tile-name {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
    max-width: 90px;
    word-break: break-word;
    text-shadow: none;
}

.pm-rr-tile.is-selected .pm-rr-tile-name {
    color: var(--hmj-primary, #0F9F8A);
    font-weight: 700;
}

/* ---------- کارت تأیید دسته بدون فرزند ---------- */
.pm-rr-prompt-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 8px 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
}

.pm-rr-prompt-card strong {
    color: var(--hmj-primary, #0F9F8A);
}

/* ---------- کارت تشخیص خودکار جهت حرکت خودرو ---------- */
.pm-rr-direction-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    margin: 6px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-rr-direction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pm-rr-direction-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pm-rr-compass-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hmj-primary, #0F9F8A);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

.pm-rr-compass-indicator i {
    transform: rotate(var(--heading-rot, 0deg));
}

.pm-rr-direction-text-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-rr-direction-tag {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-rr-direction-summary {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.pm-rr-direction-summary strong {
    color: var(--hmj-primary, #0F9F8A);
}

.pm-rr-auto-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--hmj-primary, #0F9F8A);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* دکمه‌های انتخاب لاین (همین مسیر / مسیر مخالف) */
.pm-rr-direction-toggle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 12px;
}

.pm-rr-dir-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  //  transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pm-rr-dir-toggle-btn:hover {
    color: #0f172a;
}

.pm-rr-dir-toggle-btn.active {
    background: #ffffff;
    color: var(--hmj-primary, #0F9F8A);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ---------- دکمه‌های عملیات (Submit / Cancel) ---------- */
.pm-rr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.pm-rr-btn-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.pm-rr-btn-submit {
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #0F9F8A 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15, 159, 138, 0.32);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pm-rr-btn-submit:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(15, 159, 138, 0.45);
}

.pm-rr-btn-submit:active {
    transform: scale(0.98);
}

.pm-rr-btn-cancel {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pm-rr-btn-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ---------- مارکرهای روی نقشه با تم اختصاصی برند همینجا ---------- */
.pm-road-report-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    /* توجه: هرگز روی المان ریشه مارکر نقشه transition: transform قرار داده نمی‌شود
       تا مارکر دقیقاً همگام با مختصات نقشه حرکت کند و هیچ لرزش یا تأخیری ایجاد نشود */
}

.pm-road-report-marker-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* آیکون مستقیم بدون کادر، بدون پس‌زمینه رنگی و بدون سوزن — اندازه از دیتابیس خوانده می‌شود */
.pm-road-report-marker-icon {
    width: var(--rr-icon-size, 32px);
    height: var(--rr-icon-size, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.pm-road-report-marker-icon img,
.pm-road-report-marker-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: contain !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: block;
}

/* نام گزارش در زیر آیکون - نمایش/عدم نمایش بر اساس تنظیمات دیتابیس */
.pm-road-report-marker-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 18, 32, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 2px 7px;
    margin-top: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.pm-road-report-marker-title {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* پنهان‌سازی اجزای قدیمی حباب و سوزن پین */
.pm-road-report-marker-pin,
.pm-road-report-marker-bubble,
.pm-road-report-marker-needle,
.pm-rr-status-dot {
    display: none !important;
}

/* ---------- استایل کنترل‌های تنظیمات گزارش‌های مسیر در پنل تنظیمات ---------- */
.pm-road-report-settings-section .pm-settings-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pm-road-report-settings-section .pm-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pm-road-report-settings-section .pm-settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pm-road-report-settings-section .pm-settings-row--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.pm-road-report-settings-section .pm-settings-row-text span {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hmj-text, #1e293b);
}

.pm-road-report-settings-section .pm-settings-row-text small {
    display: block;
    font-size: 11.5px;
    color: var(--hmj-text-muted, #64748b);
    margin-top: 2px;
}

.pm-road-report-settings-section .pm-settings-badge {
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 12%, #fff);
    color: var(--hmj-primary, #0F9F8A);
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid color-mix(in srgb, var(--hmj-primary, #0F9F8A) 25%, transparent);
}

/* سوئیچ Toggle شیک */
.pm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.pm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pm-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: 0.25s ease;
    border-radius: 99px;
}

.pm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.pm-toggle-switch input:checked+.pm-toggle-slider {
    background-color: var(--hmj-primary, #0F9F8A);
}

.pm-toggle-switch input:checked+.pm-toggle-slider:before {
    transform: translateX(-20px);
}

/* اسلایدر حداقل زوم */
.pm-range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.pm-range-edge {
    font-size: 11px;
    font-weight: 700;
    color: var(--hmj-text-muted, #64748b);
    min-width: 16px;
    text-align: center;
}

.pm-settings-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    outline: none;
}

.pm-settings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hmj-primary, #0F9F8A);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 159, 138, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pm-settings-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* چیپ‌های انتخاب شعاع */
.pm-settings-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.pm-settings-chip {
    flex: 1;
    min-width: 60px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hmj-text, #334155);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.pm-settings-chip:hover {
    border-color: var(--hmj-primary, #0F9F8A);
    color: var(--hmj-primary, #0F9F8A);
}

.pm-settings-chip.is-active {
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 12%, #fff);
    border-color: var(--hmj-primary, #0F9F8A);
    color: var(--hmj-primary, #0F9F8A);
    font-weight: 800;
}

/* مخفی‌سازی برچسب‌های مارکر در صورت خاموش بودن در تنظیمات */

/* ---------- کارت اعتبارسنجی رویداد (حالت مینیمال شیک بالای صفحه حین مسیریابی) ---------- */
.pm-rr-detail,
.pm-rr-detail--top-pill,
body.hmj-navigating .pm-rr-detail {
    position: fixed;
    top: calc(96px + env(safe-area-inset-top, 0px));
    bottom: auto !important;
    right: 12px;
    left: 12px;
    margin-inline: auto;
    width: min(420px, calc(100vw - 24px));
    max-width: 420px;
    z-index: 1200;
    background: rgba(13, 21, 38, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 159, 138, 0.5);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(15, 159, 138, 0.22);
    padding: 6px 10px 6px 14px;
    animation: pmRrSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    direction: rtl;
    color: #f8fafc;
}

@keyframes pmRrSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pm-rr-pill-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.pm-rr-pill-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981 0%, #0F9F8A 100%);
    box-shadow: 0 2px 8px rgba(15, 159, 138, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    overflow: hidden;
}

.pm-rr-pill-avatar img,
.pm-rr-pill-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pm-rr-pill-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.pm-rr-pill-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-rr-pill-q {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
}

.pm-rr-pill-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.pm-rr-pill-btn {
    border: none;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.14s ease, filter 0.14s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pm-rr-pill-btn:active {
    transform: scale(0.92);
}

.pm-rr-pill-btn--yes {
    background: linear-gradient(135deg, #10b981 0%, #0F9F8A 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}

.pm-rr-pill-btn--yes:hover {
    filter: brightness(1.1);
}

.pm-rr-pill-btn--no {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.pm-rr-pill-btn--no:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.pm-rr-pill-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.14s ease, background 0.14s ease;
    margin-inline-start: 2px;
}

.pm-rr-pill-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.pm-rr-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-rr-detail-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-rr-detail-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 19px;
    background: linear-gradient(135deg, #10b981 0%, #0F9F8A 100%);
    box-shadow: 0 4px 14px rgba(15, 159, 138, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

.pm-rr-detail-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.pm-rr-detail-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

.pm-rr-detail-sub {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 2px 0 0;
}

.pm-rr-detail-question {
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 16px;
    line-height: 1.45;
}

.pm-rr-verify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pm-rr-verify-yes {
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 13.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #0F9F8A 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: transform 0.15s ease;
}

.pm-rr-verify-yes:hover {
    transform: scale(1.03);
}

.pm-rr-verify-no {
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 12px;
    font-size: 13.5px;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s ease;
}

.pm-rr-verify-no:hover {
    transform: scale(1.03);
}

/* ---------- استایل‌های بخش تنظیمات راهنمای صوتی ناوبری ---------- */
.pm-voice-sub-settings {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.25s ease;
}

.pm-voice-sub-settings.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.pm-voice-test-btn {
    width: 100%;
    border: 1.5px solid color-mix(in srgb, var(--hmj-primary, #0F9F8A) 35%, transparent);
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 10%, #fff);
    color: var(--hmj-primary, #0F9F8A);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pm-voice-test-btn:hover {
    background: color-mix(in srgb, var(--hmj-primary, #0F9F8A) 20%, #fff);
    border-color: var(--hmj-primary, #0F9F8A);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 159, 138, 0.25);
}

.pm-voice-test-btn:active {
    transform: scale(0.98);
}