/* ==========================================================================
   تكسي سوريا — 4.13 (W2): تصميم الرحلة الجديد
   --------------------------------------------------------------------------
   الرئيسية (شرائح + من/إلى + بطاقات الخدمة + الدفع/القسيمة + زر كبير)،
   «عرضك» + العروض الحيّة (أفضل عرض كبير مع صورة السائق)، التتبّع المباشر
   (بطاقة السائق، اتصال/رسالة، شارك، SOS)، نوافذ المشاركة/SOS/القسائم،
   وصفحة المتابعة العامة /t/<token> (.ts413s).
   الألوان كلها من رموز الثيم var(--ts-…) (W1) — القيم التانية احتياط بس
   (👑 فاتح = الشكل الحالي، متل --ts-primary/--ts-text اللي بـapp.css من قبل)
   لحتى الصفحة تنرسم متناسقة قبل ما تنضاف الرموز الجديدة.
   الاستثناء الوحيد: لوحة السيارة بيضا متل اللوحة الحقيقية.
   ========================================================================== */

/* ---------- الهيكل ---------- */
.ts-ride.ts413r { background: var(--ts-bg, #F6F4EF); color: var(--ts-text, #16202E); }
.ts-ride.ts413r .ts-ride__panel { background: var(--ts-surface, #FFFFFF); border-color: var(--ts-outline, #E2D9C6); color: var(--ts-text, #16202E); gap: 14px; }
/* 4.13: بوضع التطبيق اللوحة طبقات فوق الخريطة — لازم تضل شفافة وإلا بتغطي الخريطة كلها */
.ts-ride--app.ts413r .ts-ride__panel { background: transparent; border: 0; }
.ts-ride.ts413r .ts-layer { gap: 12px; }
.ts413-ico { width: 20px; height: 20px; flex: none; }
.ts413r svg, .ts413-modal svg, .ts413s svg { flex: none; }
[dir="rtl"] .ts413-chev { transform: scaleX(-1); }

/* ---------- الشرائح السريعة ---------- */
.ts413-chips {
    display: flex;
    gap: 8px;
    padding: 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.ts413-chips::-webkit-scrollbar { display: none; }
.ts413-chips[hidden] { display: none; }
.ts413-chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    max-width: 180px;
    padding: 0 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .15s ease, transform .1s ease;
}
.ts413-chip span { overflow: hidden; text-overflow: ellipsis; }
.ts413-chip svg, .ts413-chip .ts-ico { width: 17px; height: 17px; color: var(--ts-primary, #B8821E); stroke: currentColor; }
.ts413-chip:hover, .ts413-chip:focus-visible { border-color: var(--ts-primary, #B8821E); outline: none; }
.ts413-chip:active { transform: scale(.97); }
.ts413-chip.is-unset { border-style: dashed; color: var(--ts-muted, #6B6557); }
.ts-ride--app.is-search .ts413-chips { display: none; }

/* ---------- من / إلى ---------- */
.ts-ride.ts413r .ts-fields { border: 1px solid var(--ts-outline, #E2D9C6); border-radius: 18px; background: var(--ts-surface2, #F0ECE3); }
.ts-ride.ts413r .ts-field + .ts-field::before { background: var(--ts-outline, #E2D9C6); }
.ts-ride.ts413r .ts-field.is-focus { background: var(--ts-surface, #FFFFFF); box-shadow: 0 0 0 2px var(--ts-primary, #B8821E) inset; }
.ts-app .ts-ride.ts413r .ts-field__input { color: var(--ts-text, #16202E); font-weight: 700; }
.ts-app .ts-ride.ts413r .ts-field__input::placeholder { color: var(--ts-muted, #6B6557); }
.ts-ride.ts413r .ts-field__dot.is-from { background: var(--ts-primary, #B8821E); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ts-primary, #B8821E) 22%, transparent); }
.ts-ride.ts413r .ts-field__dot.is-to { border-radius: 3px; background: var(--ts-accent, #1F7A8C); }
.ts-ride.ts413r .ts-field__x { color: var(--ts-muted, #6B6557); }
.ts-ride.ts413r .ts-field__x:hover { background: var(--ts-chip, #EFE7D6); color: var(--ts-text, #16202E); }
.ts-ride.ts413r .ts-tool { border-color: var(--ts-outline, #E2D9C6); background: var(--ts-chip, #EFE7D6); color: var(--ts-text, #16202E); }
.ts-ride.ts413r .ts-tool:hover { border-color: var(--ts-primary, #B8821E); }
.ts-ride.ts413r .ts-search__back { color: var(--ts-text, #16202E); }
.ts413-swap {
    display: grid;
    flex: none;
    place-items: center;
    align-self: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 14px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    cursor: pointer;
}
.ts413-swap:hover:not(:disabled) { border-color: var(--ts-primary, #B8821E); color: var(--ts-primary, #B8821E); }
.ts413-swap:disabled { opacity: .4; cursor: default; }
.ts-ride--app.is-search .ts413-swap { display: none; }

/* الأماكن المحفوظة والاقتراحات بنفس الألوان */
.ts-ride.ts413r .ts-places > summary, .ts-ride.ts413r .ts-places__menu { color: var(--ts-text, #16202E); }
.ts-ride.ts413r .ts-places__menu { border-color: var(--ts-outline, #E2D9C6); background: var(--ts-surface, #FFFFFF); }
.ts-ride.ts413r .ts-ac { border-color: var(--ts-outline, #E2D9C6); background: var(--ts-surface, #FFFFFF); color: var(--ts-text, #16202E); }

/* ---------- عناوين الأقسام ---------- */
.ts413-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.ts413-sec > b { color: var(--ts-text, #16202E); font-size: 1.12rem; font-weight: 800; }
.ts413-tag, .ts413-auto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ts-primary, #B8821E);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ts413-auto::before, .ts413-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: ts413-blink 1.6s ease-in-out infinite;
}

/* ---------- بطاقات الخدمة ---------- */
.ts-ride.ts413r .ts413-svcs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.ts-ride.ts413r .ts413-svc {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 12px 14px;
    border: 1.5px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
    color: var(--ts-text, #16202E);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.ts-ride.ts413r .ts413-svc:hover { border-color: color-mix(in srgb, var(--ts-primary, #B8821E) 55%, var(--ts-outline, #E2D9C6)); }
.ts-ride.ts413r .ts413-svc:active { transform: scale(.99); }
.ts-ride.ts413r .ts413-svc.is-active {
    border-color: var(--ts-primary, #B8821E);
    background: color-mix(in srgb, var(--ts-primary, #B8821E) 10%, var(--ts-surface2, #F0ECE3));
    color: var(--ts-text, #16202E);
    box-shadow: 0 0 0 1px var(--ts-primary, #B8821E) inset;
}
.ts-ride.ts413r .ts413-svcs.is-required .ts413-svc { border-color: color-mix(in srgb, var(--ts-accent, #1F7A8C) 60%, var(--ts-outline, #E2D9C6)); }
.ts-ride.ts413r .ts413-svc__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-primary, #B8821E);
    font-size: 1.5rem;
}
.ts-ride.ts413r .ts413-svc__icon .ts-ico { width: 28px; height: 28px; stroke: currentColor; }
.ts-ride.ts413r .ts413-svc.is-active .ts413-svc__icon { background: var(--ts-primary, #B8821E); color: var(--ts-on-primary, #FFFFFF); }
.ts-ride.ts413r .ts413-svc.is-active .ts413-svc__icon .ts-ico { stroke: currentColor; }
.ts413-svc__main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.ts413-svc__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-ride.ts413r .ts413-svc .ts-service__label { color: var(--ts-text, #16202E); font-size: 1.05rem; font-weight: 800; white-space: normal; }
.ts413-svc__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    color: var(--ts-muted, #6B6557);
    font-size: .8rem;
    line-height: 1.35;
}
.ts413-svc__sub > span { display: inline-flex; align-items: center; gap: 4px; }
.ts413-svc__sub svg { width: 14px; height: 14px; }
.ts413-svc__eta { color: var(--ts-text, #16202E); font-weight: 700; }
.ts413-svc__eta.is-none { color: var(--ts-muted, #6B6557); font-weight: 500; }
.ts413-svc__hint { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.ts413-svc__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.ts-ride.ts413r .ts413-svc .ts-service__price {
    color: var(--ts-text, #16202E);
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ts-ride.ts413r .ts413-svc .ts-service__price small { color: var(--ts-muted, #6B6557); font-size: .72rem; font-weight: 700; }
.ts-ride.ts413r .ts413-svc.is-active .ts-service__price { color: var(--ts-primary, #B8821E); }
.ts413-svc__from { color: var(--ts-primary, #B8821E); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ts413-svc__side .ts413-svc__from:empty { display: none; }

/* ---------- الشارات ---------- */
.ts413-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-muted, #6B6557);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}
.ts413-badge.is-best { background: var(--ts-primary, #B8821E); color: var(--ts-on-primary, #FFFFFF); }
.ts413-badge.is-cheapest { background: color-mix(in srgb, var(--ts-primary, #B8821E) 20%, transparent); color: var(--ts-primary, #B8821E); }
.ts413-badge.is-fastest { background: color-mix(in srgb, var(--ts-accent, #1F7A8C) 22%, transparent); color: var(--ts-accent, #1F7A8C); }
.ts413-badge.is-toprated { background: color-mix(in srgb, var(--ts-accent, #1F7A8C) 14%, var(--ts-chip, #EFE7D6)); color: var(--ts-text, #16202E); }
.ts413-badge.is-updated { background: var(--ts-chip, #EFE7D6); color: var(--ts-text, #16202E); }

/* ---------- «سعرك» قبل الطلب ---------- */
.ts-ride.ts413r .ts-fare {
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
    color: var(--ts-text, #16202E);
}
.ts-ride.ts413r .ts-fare .ts-step, .ts-ride.ts413r .ts-step {
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 14px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
}
.ts-ride.ts413r .ts-fare__label, .ts-ride.ts413r .ts-fare__value small, .ts-ride.ts413r .ts-fare__meta { color: var(--ts-muted, #6B6557); }
.ts-app .ts-ride.ts413r .ts-fare__value input { color: var(--ts-primary, #B8821E); font-size: 1.5rem; font-weight: 800; }

/* ---------- الدفع + القسيمة ---------- */
.ts413-payrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
}
.ts413-payrow__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-primary, #B8821E);
}
.ts413-payrow__txt { display: flex; min-width: 0; flex: 1; flex-direction: column; line-height: 1.3; }
.ts413-payrow__txt b { color: var(--ts-text, #16202E); font-size: .95rem; }
.ts413-payrow__txt small { color: var(--ts-muted, #6B6557); font-size: .76rem; }
.ts413-vchip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    max-width: 55%;
    min-height: 40px;
    padding: 0 10px 0 12px;
    border: 1px solid color-mix(in srgb, var(--ts-primary, #B8821E) 45%, transparent);
    border-radius: var(--ts-radius-pill, 999px);
    background: color-mix(in srgb, var(--ts-primary, #B8821E) 14%, transparent);
    color: var(--ts-primary, #B8821E);
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}
.ts413-vchip[hidden] { display: none; }
.ts413-vchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts413-vchip svg { width: 17px; height: 17px; }
.ts413-vchip.is-na { border-color: color-mix(in srgb, var(--ts-accent, #1F7A8C) 50%, transparent); background: color-mix(in srgb, var(--ts-accent, #1F7A8C) 14%, transparent); color: var(--ts-accent, #1F7A8C); }

/* ---------- زر الطلب الكبير ---------- */
.ts-ride.ts413r .ts-submit,
.ts413-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-primary, #B8821E);
    background-image: none;
    color: var(--ts-on-primary, #FFFFFF);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--ts-primary, #B8821E) 75%, transparent);
    cursor: pointer;
    transition: filter .15s ease, opacity .15s ease, transform .1s ease;
}
.ts-ride.ts413r .ts-submit:hover, .ts413-primary:hover:not(:disabled) { filter: brightness(1.06); }
.ts-ride.ts413r .ts-submit:active, .ts413-primary:active:not(:disabled) { transform: scale(.99); }
.ts-ride.ts413r .ts-submit.is-disabled { opacity: .5; box-shadow: none; }
.ts413-primary:disabled { opacity: .45; box-shadow: none; cursor: default; }
.ts413-primary[hidden] { display: none; }
.ts-ride.ts413r .ts-more__btn { border: 1px solid var(--ts-outline, #E2D9C6); border-radius: var(--ts-radius-pill, 999px); background: var(--ts-chip, #EFE7D6); color: var(--ts-text, #16202E); min-height: 56px; width: 56px; }
.ts-ride.ts413r .ts-more__panel { border-color: var(--ts-outline, #E2D9C6); background: var(--ts-surface, #FFFFFF); color: var(--ts-text, #16202E); }
.ts-ride.ts413r .ts-sheet__grip { background: var(--ts-outline, #E2D9C6); }

/* ==========================================================================
   الطلب الجاري — الورقة
   ========================================================================== */
.ts413-sheet[data-phase="pending"] .ts413-only-live,
.ts413-sheet[data-phase="live"] .ts413-only-pending { display: none !important; }

.ts413-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ts413-head__dot {
    flex: none;
    width: 14px;
    height: 14px;
    border: 3px solid var(--ts-primary, #B8821E);
    border-radius: 50%;
    animation: ts413-pulse 1.8s ease-out infinite;
}
.ts413-head__title { flex: 1; min-width: 0; margin: 0; color: var(--ts-text, #16202E); font-size: 1.28rem; font-weight: 800; line-height: 1.25; }
.ts413-livetag {
    flex: none;
    padding: 3px 9px;
    border: 1px solid color-mix(in srgb, var(--ts-primary, #B8821E) 55%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--ts-primary, #B8821E) 14%, transparent);
    color: var(--ts-primary, #B8821E);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.ts413-status {
    flex: none;
    max-width: 45%;
    overflow: hidden;
    padding: 4px 10px;
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-muted, #6B6557);
    font-size: .74rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts413-sheet[data-phase="live"] .ts413-status { display: none; }

/* مفاوضة مباشرة */
.ts413-nego {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
}
.ts413-nego__txt { display: flex; min-width: 0; flex: 1; flex-direction: column; line-height: 1.3; }
.ts413-nego__txt b { color: var(--ts-text, #16202E); font-size: 1rem; }
.ts413-nego__txt small { color: var(--ts-muted, #6B6557); font-size: .8rem; }
.ts413-count {
    flex: none;
    padding: 4px 10px;
    border-radius: var(--ts-radius-pill, 999px);
    background: color-mix(in srgb, var(--ts-primary, #B8821E) 16%, transparent);
    color: var(--ts-primary, #B8821E);
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}
.ts413-count[hidden], .ts413-count:empty { display: none; }
.ts413-radar {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ts-chip, #EFE7D6);
}
.ts413-radar i { width: 12px; height: 12px; border-radius: 50%; background: var(--ts-primary, #B8821E); }
.ts413-radar::before, .ts413-radar::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid var(--ts-primary, #B8821E);
    border-radius: 50%;
    opacity: 0;
    animation: ts413-ring 2.2s ease-out infinite;
}
.ts413-radar::after { animation-delay: 1.1s; }
.ts413-radar--sm { width: 26px; height: 26px; vertical-align: middle; }
.ts413-radar--sm i { width: 8px; height: 8px; }
.ts413-radar--sm::before, .ts413-radar--sm::after { inset: 4px; }

/* كم دقيقة */
.ts413-eta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--ts-radius-card, 20px);
    background: color-mix(in srgb, var(--ts-primary, #B8821E) 12%, var(--ts-surface2, #F0ECE3));
}
.ts413-eta[hidden] { display: none; }
.ts413-eta__min {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
    color: var(--ts-primary, #B8821E);
    line-height: 1;
}
.ts413-eta__min b { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ts413-eta__min small { margin-top: 2px; font-size: .7rem; font-weight: 700; }
.ts413-eta__txt { display: flex; min-width: 0; flex-direction: column; gap: 2px; line-height: 1.3; }
.ts413-eta__txt > span { color: var(--ts-text, #16202E); font-weight: 800; }
.ts413-eta__txt small { color: var(--ts-muted, #6B6557); font-size: .76rem; }

/* بطاقة السائق */
.ts413-dcard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
}
.ts413-dcard__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ts413-dcard__av { position: relative; flex: none; }
.ts413-dcard__img {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 2px solid var(--ts-outline, #E2D9C6);
    border-radius: 50%;
    object-fit: cover;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font-size: 1.4rem;
    font-weight: 800;
}
.ts413-verified {
    position: absolute;
    inset-inline-end: -3px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 3px solid var(--ts-surface2, #F0ECE3);
    border-radius: 50%;
    background: var(--ts-primary, #B8821E);
    color: var(--ts-on-primary, #FFFFFF);
}
.ts413-verified svg { width: 14px; height: 14px; }
.ts413-dcard__who { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.ts413-dcard__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ts413-dcard__name b { color: var(--ts-text, #16202E); font-size: 1.15rem; font-weight: 800; }
.ts413-dcard__car { overflow: hidden; color: var(--ts-muted, #6B6557); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.ts413-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ts-text, #16202E); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.ts413-rating i { color: var(--ts-accent, #1F7A8C); font-style: normal; }
.ts413-rating.is-new { padding: 1px 7px; border-radius: 7px; background: color-mix(in srgb, var(--ts-primary, #B8821E) 16%, transparent); color: var(--ts-primary, #B8821E); font-size: .7rem; }
.ts413-dcard__btns { display: flex; gap: 10px; }
.ts413-dcard__btns:not(:has(> :not([hidden]))) { display: none; }
.ts413-pill {
    position: relative;
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.ts413-pill[hidden] { display: none; }
.ts413-pill svg { width: 20px; height: 20px; color: var(--ts-primary, #B8821E); }
.ts413-pill:hover { border-color: var(--ts-primary, #B8821E); }
.ts413-pill .ts-rchat-btn__badge {
    position: absolute;
    top: -6px;
    inset-inline-end: 6px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-accent, #1F7A8C);
    color: var(--ts-bg, #F6F4EF);
    font-size: .74rem;
    font-weight: 900;
}
.ts413-pill .ts-rchat-btn__badge[hidden] { display: none; }
.ts413-chatprev {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font-size: .88rem;
    cursor: pointer;
}
.ts413-chatprev[hidden] { display: none; }
.ts413-chatprev svg { width: 18px; height: 18px; color: var(--ts-primary, #B8821E); }
.ts413-chatprev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts413-chatprev.has-unread { box-shadow: 0 0 0 1px var(--ts-accent, #1F7A8C) inset; }

/* لوحة سورية */
.ts413-plate {
    display: inline-flex;
    flex: none;
    align-items: stretch;
    overflow: hidden;
    border: 1.5px solid #1b1f24;
    border-radius: 6px;
    background: #ffffff;
    color: #111418;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    line-height: 1;
    direction: ltr;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.ts413-plate i {
    display: grid;
    place-items: center;
    padding: 0 4px;
    background: #0f7a4a;
    color: #ffffff;
    font-family: inherit;
    font-size: .52rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.ts413-plate b { padding: 6px 8px; font-size: .9rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }

/* من/إلى + السعر */
.ts413-trip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
}
.ts413-route { position: relative; display: flex; flex-direction: column; gap: 14px; }
.ts413-route::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    inset-inline-start: 6px;
    border-inline-start: 2px dashed var(--ts-outline, #E2D9C6);
}
.ts413-route__row { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.ts413-route__dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--ts-primary, #B8821E); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ts-primary, #B8821E) 20%, transparent); }
.ts413-route__row.is-to .ts413-route__dot { border-radius: 4px; background: var(--ts-accent, #1F7A8C); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ts-accent, #1F7A8C) 20%, transparent); }
.ts413-route__txt { display: flex; min-width: 0; flex-direction: column; gap: 2px; line-height: 1.35; }
.ts413-route__txt small { color: var(--ts-muted, #6B6557); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ts413-route__txt b { color: var(--ts-text, #16202E); font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; }
.ts413-farerow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ts-outline, #E2D9C6);
}
.ts413-farerow__pay { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--ts-muted, #6B6557); font-size: .82rem; }
.ts413-farerow__price { flex: none; color: var(--ts-primary, #B8821E); font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts413-farerow__price small { font-size: .78rem; font-weight: 700; }
.ts413-sheet[data-phase="pending"] .ts413-farerow { display: none; }
/* بـ«عرضك» من/إلى مختصرة (متل الموك-أب): العروض أهم */
.ts413-sheet[data-phase="pending"] .ts413-trip { gap: 6px; padding: 10px 14px; }
.ts413-sheet[data-phase="pending"] .ts413-route { gap: 8px; }
.ts413-sheet[data-phase="pending"] .ts413-route__txt small { display: none; }
.ts413-sheet[data-phase="pending"] .ts413-route__txt b { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.ts413-sheet[data-phase="pending"] .ts413-route::before { top: 10px; bottom: 10px; }
.ts413-sheet[data-phase="pending"] .ts413-route__dot { margin-top: 2px; }
.ts413-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--ts-primary, #B8821E);
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.ts413-link .ts-ico { width: 16px; height: 16px; stroke: currentColor; }

/* «عرضك» */
.ts413-bid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
}
.ts413-bid[hidden] { display: none; }
.ts413-bid__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ts413-bid__head b { color: var(--ts-muted, #6B6557); font-size: .76rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ts413-guide {
    padding: 4px 10px;
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.ts413-guide:empty { display: none; }
.ts413-bid__main {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: var(--ts-bg, #F6F4EF);
}
.ts413-stepbtn {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 16px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.ts413-stepbtn:hover:not(:disabled) { border-color: var(--ts-primary, #B8821E); color: var(--ts-primary, #B8821E); }
.ts413-stepbtn:disabled, .ts413-qstep:disabled { opacity: .4; cursor: default; }
.ts413-bid__price { display: flex; min-width: 0; flex-direction: column; align-items: center; margin: 0; cursor: text; }
.ts413-bid__val { display: flex; align-items: baseline; justify-content: center; gap: 6px; direction: ltr; }
.ts-app .ts-ride.ts413r .ts413-bid__val input,
.ts413-bid__val input {
    width: 7ch;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ts-primary, #B8821E);
    font: inherit;
    font-size: 2.3rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
    outline: none;
}
.ts413-bid__val small { color: var(--ts-primary, #B8821E); font-size: .95rem; font-weight: 800; }
.ts413-bid__cap { color: var(--ts-muted, #6B6557); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ts413-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ts413-qstep {
    min-height: 46px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 14px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: .95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    cursor: pointer;
}
.ts413-qstep:hover:not(:disabled) { border-color: var(--ts-primary, #B8821E); }
.ts413-bid__hint { color: var(--ts-muted, #6B6557); font-size: .76rem; text-align: center; }
.ts413-bid__hint:empty { display: none; }
.ts413-primary.is-dirty { animation: ts413-nudge .9s ease 1; }

/* العروض */
.ts413-offerswrap { display: flex; flex-direction: column; gap: 10px; }
.ts413-offers { display: flex; flex-direction: column; gap: 12px; }
.ts413-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    color: var(--ts-muted, #6B6557);
    font-size: .88rem;
}
.ts413-empty[hidden] { display: none; }
.ts413-offer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
    color: var(--ts-text, #16202E);
    animation: ts413-in .34s cubic-bezier(.2, .8, .2, 1) both;
}
.ts413-offer.is-leaving { animation: ts413-out .28s ease forwards; pointer-events: none; }
.ts413-offer.is-hero { gap: 12px; padding: 12px 12px 14px; border: 2px solid var(--ts-primary, #B8821E); box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--ts-primary, #B8821E) 80%, transparent); }
.ts413-timer { position: absolute; top: 0; inset-inline: 0; height: 4px; background: color-mix(in srgb, var(--ts-outline, #E2D9C6) 70%, transparent); }
.ts413-timer span { display: block; height: 100%; background: var(--ts-primary, #B8821E); transition: width 1s linear; }
[dir="rtl"] .ts413-timer span { margin-inline-start: auto; }
.ts413-offer.is-urgent .ts413-timer span { background: var(--ts-accent, #1F7A8C); }

.ts413-hero__photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: 260px;
    margin-top: 4px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--ts-chip, #EFE7D6), var(--ts-surface, #FFFFFF));
}
.ts413-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts413-hero__img.is-initials {
    display: grid;
    place-items: center;
    color: var(--ts-primary, #B8821E);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.ts413-hero__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ts413-hero__body { display: flex; flex-direction: column; gap: 6px; }
.ts413-offer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ts413-offer__who { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ts413-offer__name { overflow: hidden; color: var(--ts-text, #16202E); font-size: 1.1rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ts413-offer.is-hero .ts413-offer__name { font-size: 1.25rem; }
.ts413-offer__price { flex: none; color: var(--ts-text, #16202E); font-size: 1.3rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts413-offer.is-hero .ts413-offer__price { color: var(--ts-primary, #B8821E); font-size: 1.6rem; }
.ts413-offer__price small { color: var(--ts-muted, #6B6557); font-size: .72rem; font-weight: 700; }
.ts413-offer__car { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ts-muted, #6B6557); font-size: .84rem; }
.ts413-offer__carname { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.ts413-offer__car .ts413-plate b { padding: 4px 6px; font-size: .78rem; }
.ts413-offer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ts-muted, #6B6557); font-size: .8rem; }
.ts413-eta-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--ts-accent, #1F7A8C); font-weight: 800; }
.ts413-eta-chip svg { width: 14px; height: 14px; }
.ts413-diff { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ts413-diff.is-up { color: var(--ts-accent, #1F7A8C); }
.ts413-diff.is-down, .ts413-diff.is-same { color: var(--ts-primary, #B8821E); }
.ts413-offer__msg { margin: 0; color: var(--ts-muted, #6B6557); font-size: .84rem; font-style: italic; }

.ts413-offer__row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-top: 2px; }
.ts413-offer__av { position: relative; display: flex; flex-direction: column; align-items: center; }
.ts413-av {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid var(--ts-outline, #E2D9C6);
    border-radius: 50%;
    object-fit: cover;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font-weight: 800;
}
.ts413-offer__rt { margin-top: -10px; padding: 1px 6px; border-radius: 8px; background: var(--ts-bg, #F6F4EF); }
.ts413-offer__rt .ts413-rating { font-size: .74rem; }
.ts413-offer__mid { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.ts413-offer__line { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ts413-offer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.ts413-offer__actions { display: flex; align-items: center; gap: 10px; }
.ts413-accept {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid color-mix(in srgb, var(--ts-primary, #B8821E) 55%, transparent);
    border-radius: var(--ts-radius-pill, 999px);
    background: color-mix(in srgb, var(--ts-primary, #B8821E) 16%, transparent);
    color: var(--ts-primary, #B8821E);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}
.ts413-accept span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts413-accept svg { width: 20px; height: 20px; }
.ts413-offer.is-hero .ts413-accept, .ts413-offer:nth-child(2) .ts413-accept { border-color: transparent; background: var(--ts-primary, #B8821E); color: var(--ts-on-primary, #FFFFFF); }
.ts413-offer.is-hero .ts413-accept { min-height: 56px; font-size: 1.08rem; }
.ts413-accept:hover:not(:disabled) { filter: brightness(1.07); }
.ts413-accept:disabled, .ts413-x:disabled { opacity: .5; cursor: default; }
.ts413-x {
    display: grid;
    flex: none;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 50%;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-muted, #6B6557);
    cursor: pointer;
}
.ts413-x svg { width: 18px; height: 18px; }
.ts413-x:hover:not(:disabled) { border-color: var(--ts-danger, #C62828); color: var(--ts-danger, #C62828); }

/* شارك + SOS */
.ts413-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ts413-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 56px;
    padding: 0 12px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 18px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: .98rem;
    font-weight: 800;
    cursor: pointer;
}
.ts413-act svg { width: 21px; height: 21px; color: var(--ts-primary, #B8821E); }
.ts413-act:hover:not(:disabled) { border-color: var(--ts-primary, #B8821E); }
.ts413-act.is-sos { border-color: color-mix(in srgb, var(--ts-danger, #C62828) 40%, transparent); background: var(--ts-danger-bg, #FDECEC); color: var(--ts-danger, #C62828); }
.ts413-act.is-sos svg { color: var(--ts-danger, #C62828); }
.ts413-act.is-sos:hover { border-color: var(--ts-danger, #C62828); }
.ts413-act:disabled { opacity: .6; }

.ts413-fee { margin: 0; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ts-accent, #1F7A8C) 14%, transparent); color: var(--ts-accent, #1F7A8C); font-size: .84rem; }

/* الإلغاء: نفس النموذج، بشكل رابط */
.ts413-cancel > summary {
    display: block;
    padding: 10px;
    color: var(--ts-danger, #C62828);
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    list-style: none;
    cursor: pointer;
}
.ts413-cancel > summary::-webkit-details-marker { display: none; }
.ts413-sheet[data-phase="live"] .ts413-cancel > summary { color: var(--ts-muted, #6B6557); }
.ts413-cancel[open] > summary { color: var(--ts-danger, #C62828); }
.ts413-cancel__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--ts-danger, #C62828) 35%, var(--ts-outline, #E2D9C6));
    border-radius: var(--ts-radius-card, 20px);
    background: var(--ts-surface2, #F0ECE3);
}
.ts413-cancel__title { color: var(--ts-text, #16202E); font-size: 1rem; }
.ts-app .ts413r .ts413-cancel__form select { border-color: var(--ts-outline, #E2D9C6); background: var(--ts-surface, #FFFFFF); color: var(--ts-text, #16202E); }
.ts413-cancel__warn { margin: 0; color: var(--ts-muted, #6B6557); font-size: .78rem; line-height: 1.6; }
.ts413-danger-btn {
    min-height: 50px;
    border: 1px solid var(--ts-danger, #C62828);
    border-radius: var(--ts-radius-pill, 999px);
    background: var(--ts-danger-bg, #FDECEC);
    color: var(--ts-danger, #C62828);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.ts413-log > summary { color: var(--ts-muted, #6B6557); }

/* ==========================================================================
   جوال: الورقة أعلى لما نكون بـ«عرضك» (العروض أهم من الخريطة)
   ========================================================================== */
@media (max-width: 767.98px) {
    .ts-ride--app.ts413r .ts-layer--top,
    .ts-ride--app.ts413r .ts-layer--bottom,
    .ts-ride--app.ts413r .ts-layer--sheet { background: var(--ts-surface, #FFFFFF); color: var(--ts-text, #16202E); }
    .ts-ride--app.ts413r .ts-layer--top { gap: 8px; padding: 8px; border-radius: 22px; }
    .ts-ride--app.ts413r .ts-layer--bottom { max-height: 62%; padding-top: 8px; border-radius: 26px 26px 0 0; }
    .ts-ride--app.ts413r .ts413-sheet { gap: 12px; padding-inline: 14px; border-radius: 26px 26px 0 0; }
    .ts-ride--app.ts413r .ts413-sheet[data-phase="pending"] { max-height: 80%; }
    .ts-ride--app.ts413r .ts413-sheet[data-phase="live"] { max-height: 66%; }
    .ts-ride.ts413r .ts413-svc { min-height: 72px; padding: 10px 12px; }
    .ts413-hero__photo { max-height: 210px; }
    .ts413-bid__val input, .ts-app .ts-ride.ts413r .ts413-bid__val input { font-size: 2rem; }
}
@media (min-width: 768px) {
    .ts-ride.ts413r { grid-template-columns: minmax(0, 1fr) 420px; }
}

/* ==========================================================================
   النوافذ: المشاركة، SOS، القسائم
   ========================================================================== */
.ts413-modal .ts-modal__card { max-width: 440px; }
.ts413-mnote { margin: 0; color: var(--ts-muted, #6B6557); font-size: .84rem; line-height: 1.6; }
.ts413-sharebox { display: flex; gap: 8px; margin-top: 10px; }
.ts413-shareurl {
    min-width: 0;
    flex: 1;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 14px;
    background: var(--ts-surface2, #F0ECE3);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: .84rem;
}
.ts413-copy, .ts413-native, .ts413-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ts-outline, #E2D9C6);
    border-radius: 14px;
    background: var(--ts-chip, #EFE7D6);
    color: var(--ts-text, #16202E);
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.ts413-copy svg, .ts413-native svg, .ts413-wa svg { width: 18px; height: 18px; color: var(--ts-primary, #B8821E); }
.ts413-copy.is-done { border-color: var(--ts-primary, #B8821E); color: var(--ts-primary, #B8821E); }
.ts413-sharebtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ts413-sharebtns > * { flex: 1 1 140px; }
.ts413-wa { border-color: transparent; background: var(--ts-primary, #B8821E); color: var(--ts-on-primary, #FFFFFF); }
.ts413-wa svg { color: currentColor; }

.ts413-sos__state { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; font-size: .9rem; font-weight: 700; line-height: 1.55; }
.ts413-sos__state.is-ok { background: color-mix(in srgb, var(--ts-primary, #B8821E) 14%, transparent); color: var(--ts-text, #16202E); }
.ts413-sos__state.is-fail { background: var(--ts-danger-bg, #FDECEC); color: var(--ts-danger, #C62828); }
.ts413-tels { display: grid; gap: 8px; }
.ts413-tel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px 16px;
    border: 1px solid color-mix(in srgb, var(--ts-danger, #C62828) 40%, transparent);
    border-radius: 18px;
    background: var(--ts-danger-bg, #FDECEC);
    color: var(--ts-danger, #C62828);
    text-decoration: none;
}
.ts413-tel__ico { font-size: 1.6rem; text-align: center; }
.ts413-tel b { color: var(--ts-text, #16202E); font-size: 1.08rem; }
.ts413-tel__num { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ts413-tel.is-contact { margin-top: 8px; border-color: var(--ts-outline, #E2D9C6); background: var(--ts-surface2, #F0ECE3); color: var(--ts-primary, #B8821E); }
.ts413-tel b { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.ts413-tel.is-contact b { font-size: .95rem; }
.ts413-tel.is-contact .ts413-tel__num { font-size: 1rem; }
.ts413-sos__share { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ts-outline, #E2D9C6); }
.ts413-sos__share > b { color: var(--ts-text, #16202E); font-size: .95rem; }

.ts413-vlist { display: flex; flex-direction: column; gap: 8px; text-align: start; }
.ts413-vopt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--ts-outline, #E2D9C6);
    border-radius: 16px;
    background: var(--ts-surface2, #F0ECE3);
    color: var(--ts-text, #16202E);
    cursor: pointer;
}
.ts413-vopt:has(input:checked) { border-color: var(--ts-primary, #B8821E); }
.ts413-vopt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ts-primary, #B8821E); }
.ts413-vopt__main { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.ts413-vopt__main b { font-size: .95rem; }
.ts413-vopt__main code { color: var(--ts-primary, #B8821E); font-size: .78rem; font-weight: 800; }
.ts413-vopt__main small { color: var(--ts-muted, #6B6557); font-size: .74rem; }
.ts413-vopt__val { color: var(--ts-primary, #B8821E); font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.ts413-vlist + .ts413-mnote { margin-top: 10px; }

/* ==========================================================================
   صفحة المتابعة العامة /t/<token> (Templates/Share/Show.html + share.js)
   ========================================================================== */
.ts413s-body { margin: 0; background: var(--ts-bg, #F6F4EF); color: var(--ts-text, #16202E); font-family: "Plus Jakarta Sans", "IBM Plex Sans Arabic", Cairo, system-ui, sans-serif; }
.ts413s { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.ts413s__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ts-outline, #E2D9C6);
    background: var(--ts-surface, #FFFFFF);
}
.ts413s__brand { flex: 1; min-width: 0; margin: 0; overflow: hidden; color: var(--ts-text, #16202E); font-size: 1.05rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ts413s__map { position: relative; flex: 1 1 auto; min-height: 45vh; background: var(--ts-surface2, #F0ECE3); }
.ts413s__map #ts413s-map { position: absolute; inset: 0; }
/* 4.16: ما في طبقة خريطة (بلا بلاطات عامة بالإنتاج) — ملاحظة بوسط المربّع */
.ts413s-nomap {
    position: absolute;
    inset: auto 16px 50% 16px;
    margin: 0;
    color: var(--ts-text-muted, #6B6354);
    font-size: .92rem;
    line-height: 1.5;
    text-align: center;
}
.ts413s__sheet {
    position: relative;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -22px;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    background: var(--ts-surface, #FFFFFF);
    box-shadow: 0 -12px 30px -16px rgba(0, 0, 0, .45);
}
.ts413s__msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ts-surface2, #F0ECE3); color: var(--ts-muted, #6B6557); font-size: .9rem; }
.ts413s__msg.is-warn { background: color-mix(in srgb, var(--ts-accent, #1F7A8C) 14%, transparent); color: var(--ts-accent, #1F7A8C); }
.ts413s__msg[hidden] { display: none; }
.ts413s__eta { color: var(--ts-primary, #B8821E); font-size: .95rem; font-weight: 800; }
.ts413s__eta:empty { display: none; }
.ts413s__updated { color: var(--ts-muted, #6B6557); font-size: .76rem; }
.ts413s__note { margin: 0; color: var(--ts-muted, #6B6557); font-size: .76rem; text-align: center; }
.ts413s-pin {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 3px solid var(--ts-surface, #FFFFFF);
    border-radius: 50%;
    background: var(--ts-primary, #B8821E);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.ts413s-pin.is-to { border-radius: 8px; background: var(--ts-accent, #1F7A8C); }
.ts413s-car {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 3px solid var(--ts-surface, #FFFFFF);
    border-radius: 50%;
    background: var(--ts-text, #16202E);
    color: var(--ts-bg, #F6F4EF);
    font-size: 1.2rem;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--ts-primary, #B8821E) 35%, transparent), 0 6px 14px rgba(0, 0, 0, .35);
}
@media (min-width: 900px) {
    .ts413s { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto 1fr; }
    .ts413s__bar { grid-column: 1 / -1; }
    .ts413s__map { min-height: 0; }
    .ts413s__sheet { margin-top: 0; border-radius: 0; box-shadow: none; overflow-y: auto; border-inline-start: 1px solid var(--ts-outline, #E2D9C6); }
}

/* ---------- الحركة ---------- */
@keyframes ts413-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ts413-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes ts413-ring { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes ts413-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ts-primary, #B8821E) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes ts413-blink { 50% { opacity: .35; } }
@keyframes ts413-nudge { 30% { transform: scale(1.02); } 60% { transform: scale(.99); } }
@media (prefers-reduced-motion: reduce) {
    .ts413-offer, .ts413-offer.is-leaving, .ts413-radar::before, .ts413-radar::after,
    .ts413-head__dot, .ts413-auto::before, .ts413-tag::before, .ts413-primary.is-dirty { animation: none; }
    .ts413-timer span { transition: none; }
}

/* 4.14 — صفحة رابط الاستغاثة (/t/<token> من نوع sos) */
.ts413s.is-sos .ts413-head__dot { background: var(--ts-danger, #C62828); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ts-danger, #C62828) 22%, transparent); }
.ts413s.is-sos .ts413-head__title { color: var(--ts-danger, #C62828); }
.ts413s.is-sos.is-safe .ts413-head__title { color: var(--ts-primary, #1F8A5B); }
.ts413s.is-sos .ts413s__msg.is-warn { background: var(--ts-danger-bg, #FDECEC); color: var(--ts-danger, #C62828); }
.ts413s-car.is-sos { background: var(--ts-danger, #C62828); color: #fff; animation: ts414pulse 1.4s ease-out infinite; }
@keyframes ts414pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); } 100% { box-shadow: 0 0 0 22px rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .ts413s-car.is-sos { animation: none; } }
.ts413s__maps { display: block; text-align: center; padding: 12px 14px; border-radius: var(--ts-radius-pill, 999px); background: var(--ts-primary, #1F8A5B); color: var(--ts-on-primary, #fff); font-weight: 700; text-decoration: none; }
.ts413s__maps[hidden] { display: none; }
.ts413-trip[hidden] { display: none; }
