.scan-passport-button {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.passport-scan-modal {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.passport-scanner {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    background: #ffffff;
    padding: 18px;
    position: relative;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.34);
}

.passport-scan-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.passport-camera-box {
    height: 230px;
    margin: 14px 0;
    border-radius: 10px;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.passport-camera-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.passport-frame {
    position: absolute;
    inset: 38px 22px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.36);
}

.passport-scan-line {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 46px;
    height: 2px;
    background: #60a5fa;
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.9);
    animation: scanLine 1.2s ease-in-out infinite alternate;
}

.passport-scan-fallback {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.passport-scan-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.passport-scan-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 0.28s ease;
}

.passport-scanner p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.passport-scan-modal.scan-complete .passport-frame {
    border-color: #22c55e;
}

@keyframes scanLine {
    to { top: 182px; }
}

.manager-chat {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}

.manager-chat-header,
.manager-chat-compose {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.manager-online {
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
}

.manager-chat-log {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.chat-bubble {
    max-width: 84%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
}

.chat-bubble.manager {
    align-self: flex-start;
    background: #eef2f7;
    color: var(--text-main);
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--primary);
    color: #ffffff;
}

.manager-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.manager-quick-actions button,
.chat-attach-button {
    min-height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.chat-attach-button {
    width: 100%;
}
