.osoul-fb-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 1045;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(252, 241, 223, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, #b56242 0%, #974c30 100%);
    color: #fcf1df;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(252, 241, 223, 0.88), 0 10px 26px rgba(45, 36, 31, 0.22);
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.22s ease,
                opacity 0.2s ease;
}

[dir="ltr"] .osoul-fb-fab {
    left: auto;
    right: 22px;
}

html[data-theme="dark"] .osoul-fb-fab,
body.dark .osoul-fb-fab {
    box-shadow: 0 0 0 2px rgba(212, 155, 91, 0.26), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.osoul-fb-fab::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 65%;
    left: -95%;
    background: linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.24), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.osoul-fb-fab:hover::after {
    left: 135%;
}

.osoul-fb-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px rgba(252, 241, 223, 0.95), 0 14px 32px rgba(151, 76, 48, 0.34);
}

html[data-theme="dark"] .osoul-fb-fab:hover,
body.dark .osoul-fb-fab:hover {
    box-shadow: 0 0 0 2px rgba(212, 155, 91, 0.42), 0 15px 34px rgba(0, 0, 0, 0.55);
}

.osoul-fb-fab:focus-visible {
    outline: 2px solid #d49b5b;
    outline-offset: 3px;
}

.osoul-fb-fab-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: #fcf1df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.osoul-fb-fab-icon svg {
    width: 18px;
    height: 18px;
}

.osoul-fb-fab-label {
    white-space: nowrap;
    letter-spacing: 0.01em;
}

@media (max-width: 899px) {
    .osoul-fb-fab {
        bottom: 16px;
        left: 16px;
        padding: 10px 15px;
        font-size: 0.84rem;
    }

    [dir="ltr"] .osoul-fb-fab {
        left: auto;
        right: 16px;
    }

    body.osoul-kb-open .osoul-fb-fab {
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
    }
}

.osoul-fb-modal {
    position: fixed;
    inset: 0;
    z-index: 2060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(22, 17, 14, 0.56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    font-family: 'Tajawal', sans-serif;
}

.osoul-fb-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.osoul-fb-dialog,
.osoul-fb-dialog *,
.osoul-fb-dialog *::before,
.osoul-fb-dialog *::after {
    box-sizing: border-box;
}

.osoul-fb-dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 22px;
    background: var(--osoul-surface, #ffffff);
    color: var(--osoul-ink, #2d241f);
    border: 1px solid var(--osoul-border-strong, rgba(181, 98, 66, 0.22));
    box-shadow: 0 24px 64px rgba(22, 17, 14, 0.32);
    padding: 22px 24px 20px;
    transform: translateY(14px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.osoul-fb-modal.is-open .osoul-fb-dialog {
    transform: translateY(0) scale(1);
}

html[data-theme="dark"] .osoul-fb-dialog,
body.dark .osoul-fb-dialog {
    background: #1e1714;
    color: #f4ece1;
    border-color: rgba(212, 155, 91, 0.22);
}

.osoul-fb-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #b56242, #d49b5b, #7a7d52);
}

.osoul-fb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.osoul-fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--osoul-pill-bg, rgba(181, 98, 66, 0.1));
    border: 1px solid var(--osoul-pill-border, rgba(181, 98, 66, 0.2));
    color: var(--osoul-terracotta, #b56242);
    font-size: 0.78rem;
    font-weight: 700;
}

html[data-theme="dark"] .osoul-fb-badge,
body.dark .osoul-fb-badge {
    background: rgba(212, 155, 91, 0.12);
    border-color: rgba(212, 155, 91, 0.24);
    color: #e2ab6f;
}

.osoul-fb-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--osoul-border, rgba(45, 36, 31, 0.12));
    background: var(--osoul-surface-elevated, #fcf8f2);
    color: var(--osoul-ink-muted, #6e5d53);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

html[data-theme="dark"] .osoul-fb-close,
body.dark .osoul-fb-close {
    background: #15100e;
    border-color: rgba(244, 236, 225, 0.12);
    color: #c2b2a3;
}

.osoul-fb-close:hover {
    color: #b56242;
    border-color: rgba(181, 98, 66, 0.4);
}

.osoul-fb-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--osoul-ink, #2d241f);
    margin: 0 0 5px;
    line-height: 1.4;
}

html[data-theme="dark"] .osoul-fb-title,
body.dark .osoul-fb-title {
    color: #f4ece1;
}

.osoul-fb-subtitle {
    font-size: 0.86rem;
    color: var(--osoul-ink-muted, #6e5d53);
    margin: 0 0 13px;
    line-height: 1.6;
}

html[data-theme="dark"] .osoul-fb-subtitle,
body.dark .osoul-fb-subtitle {
    color: #bcae9f;
}

.osoul-fb-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    margin-bottom: 13px;
    border-radius: 10px;
    background: rgba(122, 125, 82, 0.11);
    border: 1px solid rgba(122, 125, 82, 0.25);
    color: #5b5f39;
    font-size: 0.82rem;
    font-weight: 600;
}

html[data-theme="dark"] .osoul-fb-user-pill,
body.dark .osoul-fb-user-pill {
    background: rgba(122, 125, 82, 0.18);
    border-color: rgba(163, 168, 114, 0.3);
    color: #cfd3a3;
}

.osoul-fb-section {
    margin-bottom: 13px;
}

.osoul-fb-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.osoul-fb-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--osoul-ink, #2d241f);
    margin: 0;
}

html[data-theme="dark"] .osoul-fb-label,
body.dark .osoul-fb-label {
    color: #f4ece1;
}

.osoul-fb-req {
    color: #c94a4a;
    margin-inline-start: 2px;
}

.osoul-fb-hint-pill {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--osoul-ink-muted, #7d6c61);
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--osoul-pill-bg, rgba(181, 98, 66, 0.08));
    white-space: nowrap;
}

.osoul-fb-mood-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--osoul-ink-muted, #7d6c61);
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--osoul-pill-bg, rgba(181, 98, 66, 0.08));
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.osoul-fb-mood-pill.is-active {
    color: #b56242;
    background: rgba(212, 155, 91, 0.18);
}

html[data-theme="dark"] .osoul-fb-mood-pill.is-active,
body.dark .osoul-fb-mood-pill.is-active {
    color: #e8b678;
    background: rgba(212, 155, 91, 0.2);
}

.osoul-fb-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--osoul-input-bg, #fcf8f2);
    border: 1.5px solid var(--osoul-border, rgba(45, 36, 31, 0.11));
    transition: border-color 0.2s ease;
}

html[data-theme="dark"] .osoul-fb-stars,
body.dark .osoul-fb-stars {
    background: #15100e;
    border-color: rgba(244, 236, 225, 0.12);
}

.osoul-fb-stars.is-invalid {
    border-color: #c94a4a;
}

.osoul-fb-star {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(181, 98, 66, 0.26);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.18s ease,
                background-color 0.18s ease,
                border-color 0.18s ease;
}

html[data-theme="dark"] .osoul-fb-star,
body.dark .osoul-fb-star {
    color: rgba(244, 236, 225, 0.22);
}

.osoul-fb-star svg {
    width: 26px;
    height: 26px;
}

.osoul-fb-star.is-lit {
    color: #d49b5b;
}

.osoul-fb-star.is-selected {
    background: rgba(212, 155, 91, 0.14);
    border-color: rgba(212, 155, 91, 0.34);
}

.osoul-fb-star:hover {
    transform: scale(1.12);
}

.osoul-fb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.osoul-fb-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1.5px solid var(--osoul-border, rgba(45, 36, 31, 0.13));
    background: var(--osoul-input-bg, #fcf8f2);
    color: var(--osoul-ink, #2d241f);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

html[data-theme="dark"] .osoul-fb-tag,
body.dark .osoul-fb-tag {
    background: #15100e;
    border-color: rgba(244, 236, 225, 0.13);
    color: #e6dacb;
}

.osoul-fb-tag:hover {
    border-color: rgba(181, 98, 66, 0.45);
}

.osoul-fb-tag.is-selected {
    background: rgba(181, 98, 66, 0.13);
    border-color: #b56242;
    color: #974c30;
    font-weight: 700;
}

html[data-theme="dark"] .osoul-fb-tag.is-selected,
body.dark .osoul-fb-tag.is-selected {
    background: rgba(181, 98, 66, 0.26);
    border-color: #d49b5b;
    color: #fcf1df;
}

.osoul-fb-tag-check {
    width: 14px;
    height: 14px;
    display: none;
}

.osoul-fb-tag.is-selected .osoul-fb-tag-check {
    display: inline-block;
}

.osoul-fb-textarea,
.osoul-fb-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1.5px solid var(--osoul-border, rgba(45, 36, 31, 0.14));
    background: var(--osoul-input-bg, #fcf8f2);
    color: var(--osoul-ink, #2d241f);
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    padding: 10px 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.osoul-fb-textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.6;
}

html[data-theme="dark"] .osoul-fb-textarea,
html[data-theme="dark"] .osoul-fb-input,
body.dark .osoul-fb-textarea,
body.dark .osoul-fb-input {
    background: #15100e;
    border-color: rgba(244, 236, 225, 0.14);
    color: #f4ece1;
}

.osoul-fb-textarea:focus,
.osoul-fb-input:focus {
    outline: none;
    border-color: #b56242;
    box-shadow: 0 0 0 3px rgba(181, 98, 66, 0.14);
}

.osoul-fb-input.is-invalid {
    border-color: #c94a4a;
}

.osoul-fb-guest-hint {
    font-size: 0.78rem;
    color: var(--osoul-ink-muted, #6e5d53);
    margin: 0 0 7px;
}

html[data-theme="dark"] .osoul-fb-guest-hint,
body.dark .osoul-fb-guest-hint {
    color: #b6a696;
}

.osoul-fb-guest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

@media (max-width: 520px) {
    .osoul-fb-dialog {
        padding: 18px 16px 16px;
    }

    .osoul-fb-guest-grid {
        grid-template-columns: 1fr;
    }

    .osoul-fb-star {
        width: 38px;
        height: 38px;
    }
}

.osoul-fb-error {
    display: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c94a4a;
    margin-top: 6px;
}

.osoul-fb-error.is-visible {
    display: block;
}

.osoul-fb-hp {
    position: absolute !important;
    top: 0 !important;
    inset-inline-start: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
}

.osoul-fb-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #b56242 0%, #974c30 100%);
    color: #fcf1df;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(181, 98, 66, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.osoul-fb-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(181, 98, 66, 0.34);
}

.osoul-fb-submit:disabled,
.osoul-fb-submit.is-loading {
    opacity: 0.82;
    cursor: not-allowed;
    pointer-events: none;
}

.osoul-fb-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(252, 241, 223, 0.35);
    border-top-color: #fcf1df;
    border-radius: 50%;
    animation: osoulFbSpin 0.7s linear infinite;
    display: none;
}

.osoul-fb-submit.is-loading .osoul-fb-spinner {
    display: inline-block;
}

@keyframes osoulFbSpin {
    to { transform: rotate(360deg); }
}

.osoul-fb-thanks {
    display: none;
    text-align: center;
    padding: 16px 8px 6px;
}

.osoul-fb-thanks.is-visible {
    display: block;
}

.osoul-fb-thanks-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(122, 125, 82, 0.14);
    border: 1.5px solid rgba(122, 125, 82, 0.34);
    color: #6c7044;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .osoul-fb-thanks-icon,
body.dark .osoul-fb-thanks-icon {
    color: #c5ca96;
    background: rgba(122, 125, 82, 0.22);
}

.osoul-fb-thanks-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.osoul-fb-thanks-body {
    font-size: 0.89rem;
    color: var(--osoul-ink-muted, #6e5d53);
    line-height: 1.65;
    margin: 0 0 16px;
}

html[data-theme="dark"] .osoul-fb-thanks-body,
body.dark .osoul-fb-thanks-body {
    color: #bcae9f;
}

.osoul-fb-thanks-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.osoul-fb-secondary-btn {
    padding: 9px 18px;
    border-radius: 11px;
    border: 1.5px solid var(--osoul-border-strong, rgba(181, 98, 66, 0.28));
    background: transparent;
    color: var(--osoul-terracotta, #b56242);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

html[data-theme="dark"] .osoul-fb-secondary-btn,
body.dark .osoul-fb-secondary-btn {
    color: #e8b678;
    border-color: rgba(212, 155, 91, 0.32);
}

.osoul-fb-secondary-btn:hover {
    background: rgba(181, 98, 66, 0.09);
}

.osoul-family-presence-pill {
    position: fixed;
    bottom: 22px;
    right: 60px;
    margin-inline-start: 1rem;
    z-index: 1044;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.96);
    border: 1px solid rgba(122, 125, 82, 0.34);
    color: #3f4226;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 10px 28px rgba(45, 36, 31, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.osoul-family-presence-pill[hidden] {
    display: none !important;
}

[dir="ltr"] .osoul-family-presence-pill {
    right: auto;
    left: 60px;
}

html[data-theme="dark"] .osoul-family-presence-pill,
body.dark .osoul-family-presence-pill {
    background: rgba(30, 23, 20, 0.94);
    border-color: rgba(163, 168, 114, 0.35);
    color: #e4e7c3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.osoul-family-presence-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #679436;
    box-shadow: 0 0 0 0 rgba(103, 148, 54, 0.55);
    animation: osoulPresencePulse 2.1s infinite;
    flex-shrink: 0;
}

@keyframes osoulPresencePulse {
    0% { box-shadow: 0 0 0 0 rgba(103, 148, 54, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(103, 148, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(103, 148, 54, 0); }
}

@media (max-width: 899px) {
    .osoul-family-presence-pill {
        bottom: 64px;
        right: 16px;
        padding: 8px 13px;
        font-size: 0.8rem;
    }

    [dir="ltr"] .osoul-family-presence-pill {
        right: auto;
        left: 16px;
    }

    body.osoul-kb-open .osoul-family-presence-pill {
        opacity: 0;
        pointer-events: none;
    }
}

@media print {
    .osoul-fb-fab,
    .osoul-fb-modal,
    .osoul-idle-modal,
    .osoul-family-presence-pill {
        display: none !important;
    }
}

.osoul-idle-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(24, 17, 13, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.osoul-idle-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.osoul-idle-dialog {
    width: 100%;
    max-width: 446px;
    padding: 26px 24px 22px;
    border-radius: 24px;
    background: #fffcf7;
    border: 1.5px solid rgba(181, 98, 66, 0.28);
    box-shadow: 0 24px 64px rgba(24, 16, 12, 0.28);
    text-align: center;
    color: #2d241f;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.osoul-idle-modal.is-open .osoul-idle-dialog {
    transform: translateY(0) scale(1);
}

html[data-theme="dark"] .osoul-idle-dialog,
body.dark .osoul-idle-dialog {
    background: #1e1714;
    border-color: rgba(212, 155, 91, 0.28);
    color: #f4ece1;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.62);
}

.osoul-idle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(181, 98, 66, 0.12);
    border: 1px solid rgba(181, 98, 66, 0.26);
    color: #974c30;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 14px;
}

html[data-theme="dark"] .osoul-idle-badge,
body.dark .osoul-idle-badge {
    background: rgba(212, 155, 91, 0.15);
    border-color: rgba(212, 155, 91, 0.3);
    color: #f0c38e;
}

.osoul-idle-ring-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
}

.osoul-idle-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.osoul-idle-ring-track {
    fill: none;
    stroke: rgba(181, 98, 66, 0.14);
    stroke-width: 6.5;
}

html[data-theme="dark"] .osoul-idle-ring-track {
    stroke: rgba(252, 241, 223, 0.12);
}

.osoul-idle-ring-prog {
    fill: none;
    stroke: #b56242;
    stroke-width: 6.5;
    stroke-linecap: round;
    stroke-dasharray: 201.06;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.22s linear, stroke 0.25s ease;
}

.osoul-idle-ring-prog.is-urgent {
    stroke: #c94141;
}

.osoul-idle-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding-top: 24px;
}

.osoul-idle-ring-center strong {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: #974c30;
    font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .osoul-idle-ring-center strong {
    color: #f0c38e;
}

.osoul-idle-ring-center span {
    font-size: 0.72rem;
    font-weight: 800;
    color: #7c675b;
}

html[data-theme="dark"] .osoul-idle-ring-center span {
    color: #bca897;
}

.osoul-idle-title {
    margin: 0 0 8px;
    font-family: 'Amiri', 'Cairo', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.3;
}

.osoul-idle-desc {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #635147;
}

html[data-theme="dark"] .osoul-idle-desc {
    color: #cbb8a6;
}

.osoul-idle-actions {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
}

.osoul-idle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 13px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.osoul-idle-btn:hover {
    transform: translateY(-1px);
}

.osoul-idle-btn--stay {
    background: #b56242;
    border: 1.5px solid #b56242;
    color: #fcf1df;
    box-shadow: 0 8px 20px rgba(181, 98, 66, 0.26);
}

.osoul-idle-btn--stay:hover {
    background: #974c30;
    border-color: #974c30;
}

.osoul-idle-btn--logout {
    background: #fdf5f3;
    border: 1.5px solid rgba(201, 65, 65, 0.35);
    color: #b43434;
}

.osoul-idle-btn--logout:hover,
.osoul-idle-btn--logout.is-activating {
    background: #c94141;
    border-color: #c94141;
    color: #ffffff;
}

html[data-theme="dark"] .osoul-idle-btn--logout {
    background: rgba(201, 65, 65, 0.13);
    border-color: rgba(239, 104, 104, 0.36);
    color: #f89898;
}

html[data-theme="dark"] .osoul-idle-btn--logout:hover,
html[data-theme="dark"] .osoul-idle-btn--logout.is-activating {
    background: #c94141;
    border-color: #c94141;
    color: #ffffff;
}

.osoul-idle-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(201, 65, 65, 0.14);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.osoul-idle-btn--logout:hover .osoul-idle-count-pill,
.osoul-idle-btn--logout.is-activating .osoul-idle-count-pill {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.osoul-idle-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: osoulIdleSpin 0.7s linear infinite;
}

.osoul-idle-btn--logout.is-activating .osoul-idle-spinner {
    display: inline-block;
}

.osoul-idle-btn--logout.is-activating .osoul-idle-logout-icon,
.osoul-idle-btn--logout.is-activating .osoul-idle-count-pill {
    display: none;
}

@keyframes osoulIdleSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 479.98px) {
    .osoul-idle-dialog {
        padding: 22px 18px 18px;
    }

    .osoul-idle-actions {
        grid-template-columns: 1fr;
    }
}

:root {
    --osoul-sb-track: rgba(181, 98, 66, 0.065);
    --osoul-sb-thumb: linear-gradient(180deg, rgba(196, 114, 79, 0.6) 0%, rgba(164, 82, 50, 0.74) 100%);
    --osoul-sb-thumb-hover: linear-gradient(180deg, #c36e4b 0%, #974c30 100%);
    --osoul-sb-thumb-active: #7c3b23;
    --osoul-sb-firefox-thumb: rgba(181, 98, 66, 0.56);
    --osoul-sb-firefox-track: rgba(181, 98, 66, 0.07);
}

html[data-theme="dark"] {
    --osoul-sb-track: rgba(252, 241, 223, 0.045);
    --osoul-sb-thumb: linear-gradient(180deg, rgba(212, 155, 91, 0.52) 0%, rgba(181, 98, 66, 0.66) 100%);
    --osoul-sb-thumb-hover: linear-gradient(180deg, #e0ac6e 0%, #bf6947 100%);
    --osoul-sb-thumb-active: #eab97f;
    --osoul-sb-firefox-thumb: rgba(212, 155, 91, 0.52);
    --osoul-sb-firefox-track: rgba(252, 241, 223, 0.05);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

:not(html):not(body)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: var(--osoul-sb-track);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--osoul-sb-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--osoul-sb-thumb-hover);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: var(--osoul-sb-thumb-active);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

@supports (-moz-appearance: none) {
    html,
    body,
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--osoul-sb-firefox-thumb) var(--osoul-sb-firefox-track);
    }
}
