/*
 * Pilot Frontend Chat
 * Storefront version of the Crew Comms visual system.
 */
.pfc-root,
.pfc-root * {
    box-sizing: border-box;
}

.pfc-root {
    --pfc-accent: #0752c5;
    --pfc-blue-1: #2f8df4;
    --pfc-blue-2: #0047b8;
    --pfc-blue-3: #102a82;
    --pfc-text: #16213f;
    --pfc-muted: #78819a;
    --pfc-border: rgba(22, 33, 63, .10);
    --pfc-shadow: 0 18px 55px rgba(10, 25, 70, .22);
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pfc-root [hidden] {
    display: none !important;
}

.pfc-panel {
    position: fixed;
    right: 18px;
    bottom: 94px;
    z-index: 9998;
    width: 450px;
    max-width: calc(100vw - 28px);
    height: 700px;
    max-height: calc(100vh - 112px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--pfc-shadow);
    opacity: 0;
    transform: translateY(18px) scale(.98);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.pfc-root.is-left .pfc-panel {
    right: auto;
    left: 18px;
}

.pfc-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Blue Crew Comms-style hero */
.pfc-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: linear-gradient(135deg, var(--pfc-blue-3) 0%, #045bd5 100%);
    color: #fff;
}

.pfc-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.pfc-avatar,
.pfc-message-avatar {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 25%, #80c4ff, #0a63db 55%, #112a82 100%);
    color: #fff;
}

.pfc-avatar {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, .62);
    box-shadow: 0 8px 18px rgba(0, 30, 100, .24);
}

.pfc-avatar img,
.pfc-message-avatar img {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.pfc-avatar img.is-loaded,
.pfc-message-avatar img.is-loaded {
    opacity: 1;
}

.pfc-avatar-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.pfc-avatar > .pfc-avatar-fallback {
    font-size: 14px;
}

.pfc-avatar-fallback[hidden] {
    display: none !important;
}

.pfc-identity-copy {
    min-width: 0;
}

.pfc-identity-copy strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pfc-identity-copy > span {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 700;
}

.pfc-online-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27db72;
    box-shadow: 0 0 0 4px rgba(39, 219, 114, .14);
}

.pfc-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pfc-header-actions button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font: 500 20px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.pfc-header-actions button:hover,
.pfc-header-actions button:focus {
    background: rgba(255, 255, 255, .25);
    outline: none;
}

.pfc-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
}

.pfc-welcome {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 15px 12px;
    border-bottom: 1px solid var(--pfc-border);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    color: var(--pfc-text);
    font-size: 13px;
    line-height: 1.45;
}

.pfc-quick-actions {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    padding: 12px 14px 13px;
    border-bottom: 1px solid var(--pfc-border);
    background: #fbfdff;
}

.pfc-quick-actions button {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(22, 33, 63, .10);
    border-radius: 3px;
    background: #fff;
    color: #202a43;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(11, 25, 68, .045);
    cursor: pointer;
}

.pfc-quick-actions button:hover,
.pfc-quick-actions button:focus {
    border-color: rgba(7, 79, 197, .32);
    background: #eaf3ff;
    outline: none;
}

.pfc-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pfc-accent);
}

.pfc-quick-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pfc-quick-actions b {
    color: #7c879e;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.pfc-messages {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 14px;
    background:
        radial-gradient(circle at 10% 0%, rgba(47, 141, 244, .06), transparent 25%),
        linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.pfc-message {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin: 0 0 12px;
}

.pfc-message.is-mine {
    flex-direction: row-reverse;
}

.pfc-message-avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
    box-shadow: none;
}

.pfc-message-content {
    max-width: 76%;
}

.pfc-message-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 4px 2px;
    color: #8992a9;
    font-size: 10px;
}

.pfc-message-meta strong {
    color: #59627b;
    font-weight: 600;
}

.pfc-message.is-mine .pfc-message-meta {
    justify-content: flex-end;
    margin-right: 2px;
}

.pfc-message-bubble {
    padding: 10px 12px;
    border-radius: 7px;
    background: #eef3fa;
    color: #26314f;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pfc-message.is-mine .pfc-message-bubble {
    background: linear-gradient(135deg, var(--pfc-blue-1) 0%, #0d58ca 100%);
    color: #fff;
}

.pfc-system-message {
    width: fit-content;
    max-width: 86%;
    margin: 7px auto 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f0f3f8;
    color: #7c8599;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

.pfc-error,
.pfc-attachment-error {
    margin: 0 11px 8px;
    padding: 8px 10px;
    border: 1px solid #f2c0c7;
    border-radius: 3px;
    background: #fff2f4;
    color: #b4233a;
    font-size: 11px;
}

/* Crew Comms-style composer */
.pfc-compose {
    position: relative;
    flex: 0 0 auto;
    display: block;
    margin: 0;
    padding: 10px 11px;
    border-top: 1px solid var(--pfc-border);
    border-radius: 0;
    background: #fff;
}

.pfc-compose.is-dragover {
    background: #f2f7ff;
    box-shadow: inset 0 0 0 2px rgba(7, 82, 197, .20);
}

.pfc-compose-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.pfc-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 92px;
    margin: 0;
    padding: 10px 12px;
    overflow-y: hidden;
    border: 1px solid #dfe6f2;
    border-radius: 3px;
    resize: none;
    background: #fff;
    color: var(--pfc-text);
    font: 13px/1.45 "Open Sans", "Helvetica Neue", Arial, sans-serif;
    box-shadow: inset 0 1px 2px rgba(10, 25, 70, .03);
}

.pfc-input:focus {
    border-color: var(--pfc-blue-1);
    box-shadow: 0 0 0 3px rgba(47, 141, 244, .13);
    outline: none;
}

.pfc-attach,
.pfc-emoji-toggle,
.pfc-send {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.pfc-attach,
.pfc-emoji-toggle {
    position: relative;
    border: 1px solid #dfe6f2;
    border-radius: 3px;
    background: #fff;
    color: #39445c;
    font-size: 18px;
    line-height: 1;
}

.pfc-attach:hover,
.pfc-attach:focus-within,
.pfc-emoji-toggle:hover,
.pfc-emoji-toggle:focus {
    border-color: rgba(7, 79, 197, .35);
    background: #eaf3ff;
    color: var(--pfc-accent);
    outline: none;
}

.pfc-attach[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
}

.pfc-attach svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pfc-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.pfc-file-input:disabled {
    cursor: not-allowed;
}

.pfc-send {
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--pfc-blue-1) 0%, var(--pfc-blue-2) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 76, 184, .28);
}

.pfc-send:hover,
.pfc-send:focus {
    filter: brightness(1.04);
    outline: none;
}

.pfc-send svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.pfc-powered {
    flex: 0 0 24px;
    height: 24px;
    padding-top: 1px;
    background: #fff;
    color: #9ca5b6;
    font-size: 9px;
    line-height: 22px;
    text-align: center;
}

.pfc-powered strong {
    color: #525d72;
}

/* Emoji picker */
.pfc-emoji-picker {
    position: absolute;
    left: 52px;
    bottom: 58px;
    z-index: 20;
    width: 286px;
    padding: 10px;
    border: 1px solid rgba(22, 33, 63, .12);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(12, 28, 68, .24);
}

.pfc-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.pfc-emoji-option {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.pfc-emoji-option:hover,
.pfc-emoji-option:focus {
    background: #eef5ff;
    outline: none;
}

/* Pending attachments */
.pfc-attachment-preview {
    display: flex;
    gap: 7px;
    margin: 0 0 8px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid #e2e8f2;
    border-radius: 3px;
    background: #f8fbff;
}

.pfc-attachment-preview-item {
    position: relative;
    flex: 0 0 174px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 25px 6px 6px;
    border: 1px solid #dfe7f2;
    border-radius: 3px;
    background: #fff;
}

.pfc-preview-visual {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 3px;
    background: #edf3fb;
    color: #506079;
    font-size: 9px;
    font-weight: 800;
}

.pfc-preview-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfc-preview-copy {
    min-width: 0;
    display: block;
    flex: 1;
}

.pfc-preview-copy strong,
.pfc-preview-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pfc-preview-copy strong {
    color: #2d3951;
    font-size: 10px;
}

.pfc-preview-copy small {
    margin-top: 2px;
    color: #8b94a7;
    font-size: 9px;
}

.pfc-attachment-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #6b7486;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* Clickable URLs and sent attachments */
.pfc-message-link {
    color: #0752c5;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.pfc-message.is-mine .pfc-message-link {
    color: #fff;
}

.pfc-message-attachments {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.pfc-image-attachment {
    display: block;
    max-width: 230px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef3f8;
}

.pfc-image-attachment img {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
}

.pfc-file-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(22, 33, 63, .10);
    border-radius: 3px;
    background: rgba(255, 255, 255, .92);
    color: #2b3650;
}

.pfc-message.is-mine .pfc-file-attachment {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.pfc-filetype {
    flex: 0 0 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #e9f1fb;
    color: #0752c5;
    font-size: 8px;
    font-weight: 900;
}

.pfc-message.is-mine .pfc-filetype {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.pfc-filecopy {
    min-width: 0;
    flex: 1;
}

.pfc-filecopy strong,
.pfc-filecopy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pfc-filecopy strong {
    font-size: 11px;
}

.pfc-filecopy small {
    margin-top: 2px;
    color: #8993a7;
    font-size: 9px;
}

.pfc-message.is-mine .pfc-filecopy small {
    color: rgba(255, 255, 255, .75);
}

.pfc-file-attachment > a {
    color: #0752c5;
    font-size: 9px;
    font-weight: 800;
    text-decoration: underline;
}

.pfc-message.is-mine .pfc-file-attachment > a {
    color: #fff;
}

/* Launcher remains a compact storefront control. */
.pfc-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9997;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pfc-accent);
    box-shadow: 0 15px 35px rgba(8, 31, 75, .28);
    cursor: pointer;
}

.pfc-root.is-left .pfc-launcher {
    right: auto;
    left: 20px;
}

.pfc-launcher-icon {
    width: 34px;
    height: 34px;
    fill: #fff;
}

.pfc-launcher-tail {
    fill: none;
    stroke: var(--pfc-accent);
    stroke-width: 2;
    stroke-linecap: round;
}

.pfc-launcher-image {
    position: absolute;
    inset: 4px;
    overflow: hidden;
    border-radius: 50%;
}

.pfc-launcher-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfc-launcher-badge {
    position: absolute;
    right: -2px;
    top: -5px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff304f;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
}

.pfc-launcher-online {
    position: absolute;
    right: 1px;
    bottom: 3px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #2fd264;
}

@media (max-width: 600px) {
    .pfc-panel {
        right: 10px !important;
        left: 10px !important;
        bottom: 82px;
        width: auto;
        height: 75dvh;
        max-width: none;
        max-height: calc(100dvh - 112px);
        border-radius: 6px;
    }

    .pfc-panel.is-open + .pfc-launcher {
        visibility: hidden;
        pointer-events: none;
    }

    .pfc-body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    .pfc-messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }

    .pfc-header {
        min-height: 70px;
        padding: 11px 13px;
    }

    .pfc-avatar {
        width: 42px;
        height: 42px;
    }

    .pfc-identity-copy strong {
        font-size: 15px;
    }

    .pfc-quick-actions {
        padding: 10px;
    }

    .pfc-messages {
        padding: 13px 10px;
    }

    .pfc-compose {
        padding: 9px;
    }

    .pfc-attach,
    .pfc-emoji-toggle,
    .pfc-send {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .pfc-input {
        height: 40px;
        min-height: 40px;
        padding: 9px 10px;
    }

    .pfc-emoji-picker {
        left: 0;
        width: 252px;
    }

    .pfc-emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pfc-launcher {
        right: 15px;
        bottom: 15px;
    }

    .pfc-root.is-left .pfc-launcher {
        left: 15px;
        right: auto;
    }
}

/* Customer connection state */
.pfc-welcome.is-connected {
    color: #155a2f;
    font-weight: 700;
    background: #f3fbf6;
}

.pfc-welcome.is-waiting {
    color: #7a5200;
    font-weight: 700;
    background: #fffaf0;
}

/* Explicit leave/disconnect confirmation */
.pfc-leave-confirm {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 24, 58, .54);
    backdrop-filter: blur(2px);
}

.pfc-leave-card {
    width: 100%;
    max-width: 330px;
    padding: 20px;
    border: 1px solid rgba(20, 39, 82, .12);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(7, 20, 58, .24);
    color: var(--pfc-text);
    text-align: left;
}

.pfc-leave-card > strong {
    display: block;
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 800;
}

.pfc-leave-card > p {
    margin: 0 0 16px;
    color: #68728a;
    font-size: 12px;
    line-height: 1.55;
}

.pfc-leave-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pfc-leave-actions button {
    min-height: 38px;
    margin: 0;
    padding: 0 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pfc-leave-no {
    border: 1px solid #d9e1ee;
    background: #fff;
    color: #29344f;
}

.pfc-leave-no:hover,
.pfc-leave-no:focus {
    border-color: #aebbd0;
    background: #f6f8fb;
}

.pfc-leave-yes {
    border: 1px solid var(--pfc-accent);
    background: var(--pfc-accent);
    color: #fff;
}

.pfc-leave-yes:hover,
.pfc-leave-yes:focus {
    filter: brightness(.92);
}

.pfc-leave-actions button:disabled {
    cursor: default;
    opacity: .65;
}

.pfc-leave-error {
    margin: 0 0 12px;
    padding: 8px 9px;
    border: 1px solid #f2c0c7;
    border-radius: 3px;
    background: #fff2f4;
    color: #b4233a;
    font-size: 11px;
}

/* Guided Rose-to-team handover choices */
.pfc-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 0;
}

.pfc-message-quick-reply {
    min-height: 34px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid rgba(7, 82, 197, .28);
    border-radius: 999px;
    background: #fff;
    color: var(--pfc-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.pfc-message-quick-reply:hover,
.pfc-message-quick-reply:focus {
    border-color: var(--pfc-accent);
    background: #eaf3ff;
    outline: none;
}

.pfc-message-quick-reply:disabled {
    cursor: default;
    opacity: .6;
}

/* Dark storefront presentation -------------------------------------------------
 * Dark appearance uses the storefront palette and remains separate from Pilot
 * branding. The class is applied by chat.js only when the storefront itself is
 * dark.
 */
.pfc-root.pfc-theme-dark {
    --pfc-accent: #2f6fff;
    --pfc-text: #ffffff;
    --pfc-muted: #aebbd0;
    --pfc-border: #34465f;
    --pfc-shadow: 0 20px 60px rgba(0, 0, 0, .46);
    color-scheme: dark;
}

.pfc-root.pfc-theme-dark .pfc-panel {
    border-color: #34465f;
    background: #071426;
    box-shadow: var(--pfc-shadow);
}

.pfc-root.pfc-theme-dark .pfc-header {
    border-bottom: 1px solid #34465f;
    background: #0b1c31;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-header-actions button {
    background: #34465f;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-header-actions button:hover,
.pfc-root.pfc-theme-dark .pfc-header-actions button:focus {
    background: #405773;
}

.pfc-root.pfc-theme-dark .pfc-body {
    background: #071426;
}

.pfc-root.pfc-theme-dark .pfc-welcome {
    border-bottom-color: #34465f;
    background: #071426;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-welcome.is-connected {
    background: #0b1c31;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-welcome.is-waiting {
    background: #0b1c31;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-quick-actions {
    border-bottom-color: #34465f;
    background: #071426;
}

.pfc-root.pfc-theme-dark .pfc-quick-actions button {
    border-color: #34465f;
    background: #0b1c31;
    color: #fff;
    box-shadow: none;
}

.pfc-root.pfc-theme-dark .pfc-quick-actions button:hover,
.pfc-root.pfc-theme-dark .pfc-quick-actions button:focus {
    border-color: #2f6fff;
    background: #102743;
}

.pfc-root.pfc-theme-dark .pfc-quick-icon {
    color: #2f6fff;
}

.pfc-root.pfc-theme-dark .pfc-quick-actions b {
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-messages {
    background: #071426;
}

.pfc-root.pfc-theme-dark .pfc-message-meta {
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-message-meta strong {
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-message-bubble {
    border: 1px solid #34465f;
    background: #0b1c31;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-message.is-mine .pfc-message-bubble {
    border-color: #2f6fff;
    background: #2f6fff;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-system-message {
    border: 1px solid #34465f;
    background: #0b1c31;
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-message-link {
    color: #7fa7ff;
}

.pfc-root.pfc-theme-dark .pfc-message.is-mine .pfc-message-link {
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-compose {
    border-top-color: #34465f;
    background: #071426;
}

.pfc-root.pfc-theme-dark .pfc-compose.is-dragover {
    background: #0b1c31;
    box-shadow: inset 0 0 0 2px rgba(47, 111, 255, .38);
}

.pfc-root.pfc-theme-dark .pfc-input {
    border-color: #34465f;
    background: #0b1c31;
    color: #fff;
    caret-color: #fff;
    box-shadow: none;
}

.pfc-root.pfc-theme-dark .pfc-input::placeholder {
    color: #aebbd0;
    opacity: 1;
}

.pfc-root.pfc-theme-dark .pfc-input:focus {
    border-color: #2f6fff;
    background: #0b1c31;
    box-shadow: 0 0 0 2px rgba(47, 111, 255, .22);
}

.pfc-root.pfc-theme-dark .pfc-attach,
.pfc-root.pfc-theme-dark .pfc-emoji-toggle {
    border-color: #34465f;
    background: #0b1c31;
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-attach:hover,
.pfc-root.pfc-theme-dark .pfc-attach:focus-within,
.pfc-root.pfc-theme-dark .pfc-emoji-toggle:hover,
.pfc-root.pfc-theme-dark .pfc-emoji-toggle:focus {
    border-color: #2f6fff;
    background: #102743;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-send {
    background: #2f6fff;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-send:hover,
.pfc-root.pfc-theme-dark .pfc-send:focus {
    background: #255ee0;
}

.pfc-root.pfc-theme-dark .pfc-powered {
    background: #071426;
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-powered strong {
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-emoji-picker {
    border-color: #34465f;
    background: #0b1c31;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .46);
}

.pfc-root.pfc-theme-dark .pfc-emoji-option:hover,
.pfc-root.pfc-theme-dark .pfc-emoji-option:focus {
    background: #102743;
}

.pfc-root.pfc-theme-dark .pfc-attachment-preview {
    border-color: #34465f;
    background: #071426;
}

.pfc-root.pfc-theme-dark .pfc-attachment-preview-item {
    border-color: #34465f;
    background: #0b1c31;
}

.pfc-root.pfc-theme-dark .pfc-preview-visual {
    background: #102743;
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-preview-copy strong {
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-preview-copy small {
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-attachment-remove {
    background: #34465f;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-image-attachment,
.pfc-root.pfc-theme-dark .pfc-file-attachment {
    border-color: #34465f;
    background: #0b1c31;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-filetype {
    background: #102743;
    color: #7fa7ff;
}

.pfc-root.pfc-theme-dark .pfc-filecopy small {
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-file-attachment > a {
    color: #7fa7ff;
}

.pfc-root.pfc-theme-dark .pfc-leave-confirm {
    background: rgba(0, 7, 18, .76);
}

.pfc-root.pfc-theme-dark .pfc-leave-card {
    border-color: #34465f;
    background: #0b1c31;
    color: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .50);
}

.pfc-root.pfc-theme-dark .pfc-leave-card > p {
    color: #aebbd0;
}

.pfc-root.pfc-theme-dark .pfc-leave-no {
    border-color: #34465f;
    background: #071426;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-leave-no:hover,
.pfc-root.pfc-theme-dark .pfc-leave-no:focus {
    border-color: #2f6fff;
    background: #102743;
}

.pfc-root.pfc-theme-dark .pfc-message-quick-reply {
    border-color: #34465f;
    background: #0b1c31;
    color: #7fa7ff;
}

.pfc-root.pfc-theme-dark .pfc-message-quick-reply:hover,
.pfc-root.pfc-theme-dark .pfc-message-quick-reply:focus {
    border-color: #2f6fff;
    background: #102743;
    color: #fff;
}

.pfc-root.pfc-theme-dark .pfc-error,
.pfc-root.pfc-theme-dark .pfc-attachment-error,
.pfc-root.pfc-theme-dark .pfc-leave-error {
    border-color: #8f4050;
    background: #32151d;
    color: #ffacb8;
}
