:root {
    --support-ink: #0b1d2d;
    --support-muted: #68798c;
    --support-line: #dce5ed;
    --support-blue: #087ee5;
    --support-blue-dark: #055da9;
    --support-surface: #ffffff;
    --support-soft: #f4f8fb;
    --support-success: #12854a;
}

.technical-support-launcher {
    position: fixed;
    right: 28px;
    bottom: 32px;
    z-index: 1055;
    display: inline-flex;
    width: auto;
    min-width: 116px;
    height: 56px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 28px;
    background: var(--support-blue);
    box-shadow: 0 12px 28px rgba(4, 49, 87, .24);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.technical-support-launcher > .glyphicon {
    font-size: 20px;
}

.technical-support-launcher__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.technical-support-launcher:hover,
.technical-support-launcher:focus {
    background: var(--support-blue-dark);
    box-shadow: 0 15px 32px rgba(4, 49, 87, .31);
    color: #fff;
    outline: 0;
    text-decoration: none;
    transform: translateY(-2px);
}

.technical-support-launcher:focus-visible {
    box-shadow: 0 0 0 4px rgba(8, 126, 229, .2), 0 15px 32px rgba(4, 49, 87, .31);
}

.technical-support-launcher__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #e83c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.technical-support-launcher__badge[hidden] {
    display: none;
}

.technical-support-panel {
    position: fixed;
    right: 28px;
    bottom: 100px;
    z-index: 1054;
    display: flex;
    width: 460px;
    height: min(650px, calc(100vh - 140px));
    min-height: 470px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(9, 40, 66, .13);
    border-radius: 18px;
    background: var(--support-surface);
    box-shadow: 0 24px 62px rgba(5, 25, 43, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.98);
    transform-origin: right bottom;
    transition: opacity .18s ease, transform .18s ease;
}

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

.technical-support-panel__header {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #071a2b;
    color: #fff;
}

.technical-support-panel__header h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.technical-support-panel__status {
    display: inline-flex;
    align-items: center;
    color: #b8d5eb;
    font-size: 12px;
    letter-spacing: .04em;
}

.technical-support-panel__status i {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #34c778;
    box-shadow: 0 0 0 4px rgba(52, 199, 120, .12);
}

.technical-support-panel__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #d9e8f4;
    font-size: 24px;
    line-height: 30px;
}

.technical-support-panel__close:hover,
.technical-support-panel__close:focus {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    outline: 0;
}

.technical-support-panel__notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 18px;
    border-bottom: 1px solid #dceaf5;
    background: #eef7ff;
    color: #36536b;
    font-size: 13px;
    line-height: 1.55;
}

.technical-support-panel__notice .glyphicon {
    margin-top: 3px;
    color: var(--support-blue);
}

.technical-support-panel__notice p {
    margin: 0;
}

.technical-support-panel__messages,
.technical-support-detail__messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--support-soft);
}

.technical-support-panel__messages {
    padding: 18px;
}

.technical-support-empty,
.technical-support-detail__empty {
    display: flex;
    height: 100%;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--support-muted);
    text-align: center;
}

.technical-support-empty .glyphicon,
.technical-support-detail__empty .glyphicon {
    margin-bottom: 12px;
    color: #9bb4c8;
    font-size: 30px;
}

.technical-support-empty strong {
    margin-bottom: 5px;
    color: var(--support-ink);
    font-size: 14px;
}

.technical-support-empty p,
.technical-support-detail__empty p {
    margin: 0;
    font-size: 12px;
}

.technical-support-detail__empty[hidden] {
    display: none;
}

.technical-support-message {
    display: flex;
    margin-bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
}

.technical-support-message.is-mine {
    align-items: flex-end;
}

.technical-support-message__meta {
    margin: 0 5px 5px;
    color: #7e8f9f;
    font-size: 11px;
}

.technical-support-message__bubble {
    max-width: 84%;
    padding: 10px 13px;
    border: 1px solid var(--support-line);
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    color: #193247;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.technical-support-message.is-mine .technical-support-message__bubble {
    border-color: var(--support-blue);
    border-radius: 14px 4px 14px 14px;
    background: var(--support-blue);
    color: #fff;
}

.technical-support-message__text:empty {
    display: none;
}

.technical-support-message__image-link {
    display: block;
    overflow: hidden;
    max-width: 360px;
    margin-top: 8px;
    border-radius: 8px;
    background: #eef4f8;
}

.technical-support-message__text:empty + .technical-support-message__image-link {
    margin-top: 0;
}

.technical-support-message__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.technical-support-panel__feedback,
.technical-support-detail__feedback {
    min-height: 0;
    padding: 0 18px;
    color: #c43131;
    font-size: 12px;
}

.technical-support-panel__feedback:not(:empty),
.technical-support-detail__feedback:not(:empty) {
    padding-top: 8px;
}

.technical-support-composer {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 16px 14px;
    border-top: 1px solid var(--support-line);
    background: #fff;
}

.technical-support-composer textarea,
.technical-support-admin-composer textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    resize: none;
    border: 1px solid #cdd9e3;
    border-radius: 10px;
    background: #fff;
    color: var(--support-ink);
    line-height: 1.5;
    outline: 0;
}

.technical-support-composer textarea {
    min-height: 108px;
    max-height: 240px;
    padding: 12px 14px;
    resize: vertical;
}

.technical-support-composer textarea:focus,
.technical-support-admin-composer textarea:focus {
    border-color: var(--support-blue);
    box-shadow: 0 0 0 3px rgba(8, 126, 229, .1);
}

.technical-support-composer.is-dragging textarea,
.technical-support-admin-composer.is-dragging textarea {
    border-color: var(--support-blue);
    background: #f3f9ff;
    box-shadow: 0 0 0 3px rgba(8, 126, 229, .12);
}

.technical-support-composer__footer,
.technical-support-admin-composer > div {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}

.technical-support-composer small,
.technical-support-admin-composer small {
    max-width: 250px;
    color: #82909e;
    font-size: 10px;
    line-height: 1.35;
}

.technical-support-composer__attachments {
    display: flex;
    min-height: 30px;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start !important;
    margin-top: 8px;
}

.technical-support-image-remove {
    margin: 0;
    border: 1px solid #cbd8e2;
    border-radius: 7px;
    background: #fff;
    color: #36546b;
    font-size: 11px;
    font-weight: 600;
    line-height: 28px;
    cursor: pointer;
}

.technical-support-image-remove {
    padding: 0 9px;
}

.technical-support-image-preview[hidden],
.technical-support-drop-hint[hidden] {
    display: none;
}

.technical-support-image-remove:hover,
.technical-support-image-remove:focus {
    border-color: var(--support-blue);
    color: var(--support-blue);
    outline: 0;
}

.technical-support-image-name {
    display: block;
    overflow: hidden;
    max-width: 260px;
    color: #607487;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technical-support-drop-hint {
    display: flex;
    min-width: 240px;
    flex: 1;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border: 1px dashed #a8bfd2;
    border-radius: 9px;
    background: #f7fafc;
    color: #4e687e;
}

.technical-support-drop-hint > .glyphicon {
    color: var(--support-blue);
    font-size: 18px;
}

.technical-support-drop-hint strong,
.technical-support-drop-hint small {
    display: block;
}

.technical-support-drop-hint strong {
    color: #24455e;
    font-size: 12px;
}

.technical-support-drop-hint small {
    max-width: none;
    margin-top: 2px;
    font-size: 10px;
}

.technical-support-image-preview {
    display: flex;
    min-width: 260px;
    flex: 1;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #9fd7b8;
    border-radius: 9px;
    background: #f0faf5;
}

.technical-support-image-preview img {
    width: 48px;
    height: 48px;
    border: 1px solid #c6ddcf;
    border-radius: 7px;
    background: #fff;
    object-fit: cover;
}

.technical-support-image-preview__copy {
    min-width: 0;
    flex: 1;
}

.technical-support-image-preview__copy > strong {
    display: block;
    margin-bottom: 2px;
    color: var(--support-success);
    font-size: 12px;
}

.technical-support-character-count {
    margin-left: auto;
    color: #8190a0;
    font-size: 11px;
    white-space: nowrap;
}

.technical-support-send {
    min-width: 72px;
    border: 0;
    border-radius: 8px;
    background: var(--support-blue);
    color: #fff;
    font-weight: 700;
}

.technical-support-send:hover,
.technical-support-send:focus {
    background: var(--support-blue-dark);
    color: #fff;
    outline: 0;
}

.technical-support-send[disabled] {
    opacity: .55;
}

.technical-support-inbox {
    max-width: 1360px;
    margin: 20px auto 46px;
    color: var(--support-ink);
}

.technical-support-inbox__hero {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    padding: 34px 42px;
    border-radius: 18px;
    background: linear-gradient(112deg, #071a2b 0%, #09365d 68%, #087ee5 135%);
    box-shadow: 0 18px 38px rgba(6, 37, 62, .16);
    color: #fff;
}

.technical-support-inbox__eyebrow {
    color: #67b9ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.technical-support-inbox__hero h1 {
    margin: 10px 0 7px;
    color: #fff;
    font-size: 34px;
    font-weight: 750;
}

.technical-support-inbox__hero p {
    margin: 0;
    color: #c5d8e8;
    font-size: 15px;
}

.technical-support-inbox__summary {
    display: flex;
    min-width: 150px;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.technical-support-inbox__summary strong {
    font-size: 38px;
    line-height: 1;
}

.technical-support-inbox__summary span {
    margin-top: 9px;
    color: #c6dbee;
    font-size: 12px;
}

.technical-support-workspace {
    display: grid;
    min-height: 650px;
    margin-top: 20px;
    overflow: hidden;
    grid-template-columns: 360px minmax(0, 1fr);
    border: 1px solid var(--support-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(12, 45, 72, .08);
}

.technical-support-thread-list {
    border-right: 1px solid var(--support-line);
    background: #fbfdff;
}

.technical-support-thread-list__header,
.technical-support-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.technical-support-thread-list__header {
    padding: 22px 20px 14px;
}

.technical-support-thread-list__header h2,
.technical-support-detail__header h2 {
    margin: 0;
    color: var(--support-ink);
    font-size: 18px;
    font-weight: 700;
}

.technical-support-thread-list__header span,
.technical-support-detail__header span {
    color: var(--support-muted);
    font-size: 12px;
}

.technical-support-icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--support-line);
    border-radius: 8px;
    background: #fff;
    color: #4c6579;
}

.technical-support-icon-button:hover,
.technical-support-icon-button:focus {
    border-color: var(--support-blue);
    color: var(--support-blue);
    outline: 0;
}

.technical-support-search {
    position: relative;
    display: block;
    margin: 0 20px 16px;
}

.technical-support-search .glyphicon {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #8295a7;
}

.technical-support-search input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 35px;
    border: 1px solid var(--support-line);
    border-radius: 9px;
    background: #fff;
    outline: 0;
}

.technical-support-search input:focus {
    border-color: var(--support-blue);
}

.technical-support-thread-list__items {
    max-height: 568px;
    overflow-y: auto;
}

.technical-support-thread {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-top: 1px solid #e7edf2;
    background: transparent;
    color: inherit;
    text-align: left;
}

.technical-support-thread:hover,
.technical-support-thread:focus,
.technical-support-thread.is-selected {
    background: #edf6ff;
    outline: 0;
}

.technical-support-thread.is-selected {
    box-shadow: inset 3px 0 var(--support-blue);
}

.technical-support-thread__top,
.technical-support-thread__bottom {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.technical-support-thread__top strong {
    overflow: hidden;
    color: var(--support-ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technical-support-thread__top time,
.technical-support-thread__bottom {
    color: #8190a0;
    font-size: 11px;
}

.technical-support-thread__preview {
    overflow: hidden;
    margin: 7px 0 8px;
    color: #52687a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technical-support-thread__badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e83c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.technical-support-thread__state {
    color: var(--support-success);
}

.technical-support-thread__state.is-closed {
    color: #8795a3;
}

.technical-support-detail {
    position: relative;
    min-width: 0;
    background: var(--support-soft);
}

.technical-support-detail__content {
    display: flex;
    min-height: 650px;
    flex-direction: column;
}

.technical-support-detail__content[hidden] {
    display: none;
}

.technical-support-detail__header {
    min-height: 78px;
    padding: 17px 24px;
    border-bottom: 1px solid var(--support-line);
    background: #fff;
}

.technical-support-detail__header h2 {
    margin-top: 5px;
}

.technical-support-state-button {
    border: 1px solid #cbd8e2;
    border-radius: 8px;
    background: #fff;
    color: #3d566b;
}

.technical-support-state-button:hover,
.technical-support-state-button:focus {
    border-color: var(--support-blue);
    color: var(--support-blue);
    outline: 0;
}

.technical-support-detail__messages {
    min-height: 430px;
    padding: 25px 28px;
}

.technical-support-admin-composer {
    padding: 17px 22px 20px;
    border-top: 1px solid var(--support-line);
    background: #fff;
}

.technical-support-admin-composer textarea {
    width: 100%;
    max-width: none;
    min-height: 116px;
    max-height: 260px;
    padding: 13px 15px;
    resize: vertical;
}

@media (max-width: 900px) {
    .technical-support-workspace {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .technical-support-inbox__hero {
        padding: 28px;
    }
}

@media (max-width: 700px) {
    .technical-support-launcher {
        right: 16px;
        bottom: 20px;
        width: auto;
        min-width: 106px;
        height: 52px;
        padding: 0 14px;
    }

    .technical-support-panel {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        height: min(610px, calc(100vh - 104px));
        min-height: 420px;
    }

    .technical-support-inbox {
        margin-top: 10px;
    }

    .technical-support-inbox__hero {
        min-height: 160px;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .technical-support-inbox__hero h1 {
        font-size: 27px;
    }

    .technical-support-inbox__summary {
        min-width: 92px;
        min-height: 86px;
    }

    .technical-support-inbox__summary strong {
        font-size: 30px;
    }

    .technical-support-workspace {
        display: block;
        min-height: auto;
    }

    .technical-support-thread-list {
        border-right: 0;
        border-bottom: 1px solid var(--support-line);
    }

    .technical-support-thread-list__items {
        max-height: 280px;
    }

    .technical-support-detail__content {
        min-height: 580px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .technical-support-launcher,
    .technical-support-panel {
        transition: none;
    }
}
