.tr-support-shell,
.tr-support-reports {
    display: grid;
    gap: 20px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.tr-support-shell *,
.tr-support-reports * {
    box-sizing: border-box;
}

.tr-support-shell__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: linear-gradient(135deg, #081a31 0%, #0f4c81 48%, #1ea7a1 100%);
    color: #ffffff;
}

.tr-support-shell__head h2 {
    margin: 4px 0 8px;
    color: #ffffff;
}

.tr-support-shell__head p,
.tr-support-shell__eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.tr-support-shell__eyebrow--soft {
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
}

.tr-support-presence {
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 6px;
}

.tr-support-presence strong {
    color: #ffffff;
}

.tr-support-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    width: 100%;
}

.tr-support-layout--compact {
    grid-template-columns: minmax(0, 1fr);
}

.tr-support-sidebar,
.tr-support-panel,
.tr-support-report-card,
.tr-support-empty,
.tr-support-admin-presence {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tr-support-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
    min-width: 0;
}

.tr-support-conversation-link {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    color: #0f172a;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.tr-support-conversation-link strong,
.tr-support-conversation-link small,
.tr-support-conversation-link__meta {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-conversation-link__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    min-width: 0;
}

.tr-support-conversation-link__head .tr-support-badge {
    flex-shrink: 0;
    max-width: 100%;
}

.tr-support-conversation-link__meta {
    font-size: 12px;
    color: #475569;
    display: block;
    width: 100%;
}

.tr-support-conversation-link.is-active {
    border-color: #14b8a6;
    background: #ecfeff;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.16);
}

.tr-support-pill--alert {
    background: #fee2e2;
    color: #b91c1c;
}

.tr-support-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tr-support-history {
    display: grid;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.tr-support-history-group {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    overflow: hidden;
}

.tr-support-history-group summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.tr-support-history-group summary::-webkit-details-marker {
    display: none;
}

.tr-support-history-group__count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
}

.tr-support-history-group__list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
    min-width: 0;
    width: 100%;
}

.tr-support-history-menu-wrap {
    display: grid;
    gap: 14px;
}

.tr-support-sidebar__section {
    display: grid;
    gap: 12px;
}

.tr-support-sidebar__section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.tr-support-sidebar__section-head strong {
    font-size: 14px;
    color: #0f172a;
}

.tr-support-sidebar__section-head span {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.tr-support-history-menu {
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
    min-width: 0;
}

.tr-support-history-menu--toolbar {
    width: 100%;
}

.tr-support-history-menu__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    list-style: none;
    min-width: 0;
}

.tr-support-history-menu__summary::-webkit-details-marker {
    display: none;
}

.tr-support-history-menu__icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 18px;
}

.tr-support-history-menu__icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f4c81;
}

.tr-support-history-menu__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tr-support-history-menu__copy strong {
    color: #0f172a;
    font-size: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-history-menu__copy small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-history-menu__list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
    min-width: 0;
    width: 100%;
}

.tr-support-history-menu__body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
    min-width: 0;
    width: 100%;
}

.tr-support-history-menu__body > .tr-support-history-menu__copy {
    display: none;
}

.tr-support-sidebar__section > .tr-support-history-menu__copy {
    display: none;
}

.tr-support-history-menu__helper {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.tr-support-panel__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.tr-support-panel__meta div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.tr-support-panel__meta strong,
.tr-support-composer span {
    display: block;
    margin-bottom: 6px;
}

.tr-support-panel__meta div span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-thread {
    display: grid;
    gap: 14px;
    max-height: 540px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable both-edges;
    padding-right: 0;
}

.tr-support-thread > * {
    min-width: 0;
    max-width: 100%;
}

.tr-support-message {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    min-width: 0;
    overflow: hidden;
}

.tr-support-message--client {
    background: #ecfeff;
    border-color: #bae6fd;
}

.tr-support-message--admin {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.tr-support-message--system {
    background: #f8fafc;
    border-color: #dbe4f0;
}

.tr-support-message__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 12px;
    color: #64748b;
}

.tr-support-message__meta strong,
.tr-support-message__meta span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-message__body {
    min-width: 0;
}

.tr-support-message__body p {
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-message__note {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.tr-support-message__note strong,
.tr-support-message__note span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-report-list,
.tr-support-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 14px;
    min-width: 0;
}

.tr-support-report-card {
    gap: 12px;
    display: grid;
    min-width: 0;
}

.tr-support-report-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.tr-support-report-card__date {
    font-size: 12px;
    color: #64748b;
}

.tr-support-report-card__head strong,
.tr-support-report-card p,
.tr-support-report-card__date {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-report-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.tr-support-report-card__hint {
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.tr-support-report-card__actions .button,
.tr-support-ticket-state__actions .button,
.tr-support-composer__actions .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.tr-support-reports__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.tr-support-reports__stat,
.tr-support-reports__group {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tr-support-reports__stat {
    display: grid;
    gap: 8px;
}

.tr-support-reports__stat strong {
    font-size: 32px;
    line-height: 1;
    color: #0f4c81;
}

.tr-support-reports__stat span {
    color: #475569;
    font-weight: 600;
}

.tr-support-reports__group {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tr-support-reports__group-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.tr-support-reports__group-copy {
    display: grid;
    gap: 8px;
}

.tr-support-reports__group-copy h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
}

.tr-support-reports__group-copy p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.tr-support-report-grid--account {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.tr-support-report-card--account {
    min-height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tr-support-reports__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tr-support-reports__meta span {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.tr-support-reports__meta strong {
    color: #0f172a;
    font-size: 12px;
}

.tr-support-reports__meta small {
    color: #64748b;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-topic {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tr-support-topic__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.tr-support-topic__copy {
    display: grid;
    gap: 8px;
}

.tr-support-topic__copy h3,
.tr-support-topic__copy p {
    margin: 0;
}

.tr-support-topic__copy h3 {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
}

.tr-support-topic__copy p {
    color: #475569;
    line-height: 1.6;
}

.tr-support-topic__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.tr-support-topic__meta span {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe4f0;
    min-width: 0;
}

.tr-support-topic__meta strong {
    color: #0f172a;
    font-size: 12px;
}

.tr-support-topic__meta small {
    color: #475569;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-topic__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tr-support-report-picker {
    display: grid;
    gap: 14px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.tr-support-report-picker.is-hidden {
    display: none;
}

.tr-support-report-picker[open] {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tr-support-report-picker__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.tr-support-report-picker__summary::-webkit-details-marker {
    display: none;
}

.tr-support-report-picker__summary-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tr-support-report-picker__summary-copy strong,
.tr-support-report-picker__summary-copy small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-report-picker__summary-copy small {
    color: #64748b;
}

.tr-support-report-picker__body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    max-height: min(460px, 68vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.tr-support-report-picker__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

.tr-support-report-picker__footer span {
    color: #64748b;
    font-size: 13px;
}

.tr-support-intake {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tr-support-intake__head {
    display: grid;
    gap: 6px;
}

.tr-support-intake__head strong {
    color: #0f172a;
}

.tr-support-intake__head p,
.tr-support-intake__helper,
.tr-support-intake__status {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.tr-support-intake__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.tr-support-intake__choice {
    position: relative;
    display: block;
    min-width: 0;
}

.tr-support-intake__choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tr-support-intake__choice span {
    display: grid;
    gap: 5px;
    min-height: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tr-support-intake__choice input:checked + span {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
}

.tr-support-intake__choice strong,
.tr-support-intake__choice small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-intake__choice small {
    color: #64748b;
    line-height: 1.5;
}

.tr-support-intake__order-field.is-hidden {
    display: none;
}

.tr-support-intake__status {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #ffffff;
    line-height: 1.6;
}

.tr-support-intake-summary {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.tr-support-intake-summary__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tr-support-intake-summary__head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.tr-support-intake-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.tr-support-intake-summary__grid span {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    background: rgba(255, 255, 255, 0.92);
    min-width: 0;
}

.tr-support-intake-summary__grid small {
    color: #475569;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-badge,
.tr-support-validation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tr-support-badge--waiting,
.tr-support-validation--pending {
    background: #fef3c7;
    color: #92400e;
}

.tr-support-badge--live {
    background: #dbeafe;
    color: #1d4ed8;
}

.tr-support-badge--resolved,
.tr-support-validation--confirmed {
    background: #dcfce7;
    color: #166534;
}

.tr-support-badge--closed,
.tr-support-validation--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.tr-support-badge--en_attente {
    background: #fef3c7;
    color: #92400e;
}

.tr-support-badge--en_traitement {
    background: #dbeafe;
    color: #1d4ed8;
}

.tr-support-badge--traite {
    background: #dcfce7;
    color: #166534;
}

.tr-support-badge--archiver,
.tr-support-badge--reouvert {
    background: #ede9fe;
    color: #6d28d9;
}

.tr-support-composer {
    display: grid;
    gap: 14px;
}

.tr-support-composer select,
.tr-support-composer textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.tr-support-composer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tr-support-composer__state {
    color: #64748b;
    font-size: 13px;
}

.tr-support-composer__state.is-error {
    color: #b91c1c;
}

.tr-support-composer__upload,
.tr-support-composer__hint {
    color: #64748b;
}

.tr-support-composer__upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed #94a3b8;
    border-radius: 14px;
    background: #f8fafc;
}

.tr-support-typing {
    min-height: 22px;
    font-size: 13px;
    color: #0f766e;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tr-support-typing.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tr-support-ticket-state,
.tr-support-status-panel {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tr-support-ticket-state--resolved {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.tr-support-ticket-state--closed {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.tr-support-ticket-state p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.tr-support-ticket-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tr-support-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ccfbf1;
    color: #115e59;
    font-size: 12px;
    font-weight: 700;
}

.tr-support-report-card.is-selected {
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.tr-support-attachments {
    display: grid;
    gap: 10px;
}

.tr-support-attachment {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
}

.tr-support-attachment__preview {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.tr-support-attachment__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tr-support-attachment__meta {
    display: grid;
    gap: 4px;
    align-content: center;
    min-width: 0;
}

.tr-support-attachment__meta strong,
.tr-support-attachment__meta span,
.tr-support-attachment__meta a {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-attachment__meta a {
    color: #0f4c81;
    text-decoration: none;
    font-weight: 600;
}

.tr-support-notifications {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tr-support-notifications__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.tr-support-notifications__list {
    display: grid;
    gap: 10px;
}

.tr-support-notification {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
}

.tr-support-notification.is-unread {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.tr-support-notification p {
    margin: 0;
    color: #334155;
}

.tr-support-notification__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
    min-width: 0;
}

.tr-support-notification__meta a {
    color: #0f4c81;
    text-decoration: none;
    font-weight: 700;
}

.tr-support-admin-presence {
    display: grid;
    gap: 8px;
}

.tr-support-admin-presence__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
    border: 1px solid #99f6e4;
    font-weight: 700;
}

.tr-support-status-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.tr-support-status-panel__head p,
.tr-support-status-action p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.tr-support-status-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tr-support-status-action {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
}

.tr-support-status-action.is-current {
    border-color: #14b8a6;
    background: #ecfeff;
}

.tr-support-status-action form {
    display: flex;
}

.tr-support-status-action .button {
    width: 100%;
    justify-content: center;
}

.tr-support-status-panel__danger {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #fff5f5, #ffffff);
}

.tr-support-status-panel__danger p {
    margin: 6px 0 0;
    color: #7f1d1d;
    line-height: 1.6;
}

.tr-support-danger-button {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.tr-support-danger-button:hover,
.tr-support-danger-button:focus {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.tr-support-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.tr-support-settings-grid label {
    display: grid;
    gap: 8px;
}

.tr-support-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 24px;
    align-items: start;
}

.tr-support-settings-form {
    display: grid;
    gap: 18px;
}

.tr-support-settings-section {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.tr-support-settings-preview {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.tr-support-settings-preview__head {
    display: grid;
    gap: 14px;
}

.tr-support-settings-preview__head p {
    margin: 6px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.tr-support-settings-preview__head label {
    display: grid;
    gap: 8px;
}

.tr-support-email-preview-subject {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
}

.tr-support-email-preview-subject strong {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.tr-support-email-preview-subject span {
    color: #0f172a;
    line-height: 1.6;
    word-break: break-word;
}

.tr-support-email-preview-canvas {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
}

.tr-support-settings-placeholders {
    display: grid;
    gap: 12px;
}

.tr-support-settings-placeholders__grid {
    display: grid;
    gap: 10px;
}

.tr-support-settings-placeholder {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
}

.tr-support-settings-placeholder code {
    font-size: 12px;
    color: #0f4c81;
}

.tr-support-settings-placeholder span {
    color: #64748b;
    line-height: 1.5;
}

.tr-support-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 4px;
}

.tr-support-pagination__meta {
    color: #64748b;
    font-size: 13px;
}

.tr-support-pagination__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tr-support-pagination--notifications {
    padding: 16px 0 4px;
}

.tr-support-panel > .tr-support-panel__meta:not([data-tr-support-summary]),
.tr-admin-card[data-tr-support-app] > .tr-support-panel__meta:not([data-tr-support-summary]) {
    display: none;
}

.tr-support-panel__meta[data-tr-support-summary] {
    margin-bottom: 4px;
}

.tr-admin-card[data-tr-support-app] {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}

.tr-admin-card[data-tr-support-app] [data-tr-admin-actions],
.tr-admin-card[data-tr-support-app] [data-tr-linked-reports],
.tr-admin-card[data-tr-support-app] [data-tr-support-composer-panel] {
    display: grid;
    gap: 16px;
}

[data-tr-ticket-state],
[data-tr-admin-actions],
[data-tr-support-composer-panel] {
    display: grid;
    gap: 16px;
}

[data-tr-ticket-state]:empty,
[data-tr-admin-actions]:empty,
[data-tr-support-composer-panel]:empty {
    display: none;
}

.tr-support-avatar,
.tr-support-message__avatar {
    display: inline-flex;
}

.tr-admin-grid {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    align-items: start;
}

.tr-admin-grid > .tr-admin-card {
    min-width: 0;
    overflow: hidden;
}

.tr-admin-card[data-tr-support-app] .tr-support-thread {
    max-height: none;
    min-height: 520px;
    padding-right: 6px;
}

.tr-admin-card[data-tr-support-app] .tr-support-message,
.tr-admin-card[data-tr-support-app] .tr-support-message--system {
    width: 100%;
    max-width: 100%;
}

.tr-admin-card[data-tr-support-app] .tr-support-message__content,
.tr-admin-card[data-tr-support-app] .tr-support-message__bubble,
.tr-admin-card[data-tr-support-app] .tr-support-message__body,
.tr-admin-card[data-tr-support-app] .tr-support-message__body p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .tr-support-settings-layout {
        grid-template-columns: 1fr;
    }

    .tr-support-settings-preview {
        position: static;
    }

    .tr-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .tr-support-settings-section,
    .tr-support-settings-preview {
        padding: 18px;
        border-radius: 20px;
    }

    .tr-support-settings-grid {
        grid-template-columns: 1fr;
    }

    .tr-support-pagination {
        align-items: stretch;
    }

    .tr-support-pagination__actions {
        width: 100%;
    }

    .tr-support-pagination__actions .button {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.tr-support-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #0f4c81;
    font-weight: 700;
    flex-shrink: 0;
}

.tr-support-avatar__image {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: block;
}

.tr-support-avatar__fallback {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f4c81 0%, #1ea7a1 100%);
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.tr-support-avatar__fallback--system {
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
}

.tr-support-agent {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.tr-support-agent__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tr-support-agent__copy strong,
.tr-support-agent__copy small {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-message {
    width: min(100%, 760px);
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.tr-support-message--client {
    justify-self: end;
}

.tr-support-message--admin {
    justify-self: start;
}

.tr-support-message--system {
    justify-self: center;
    width: min(100%, 680px);
}

.tr-support-message--system .tr-support-message__content {
    width: 100%;
}

.tr-support-message__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.tr-support-message--client .tr-support-message__inner {
    grid-template-columns: minmax(0, 1fr) auto;
}

.tr-support-message--client .tr-support-message__avatar {
    order: 2;
}

.tr-support-message--client .tr-support-message__content {
    order: 1;
}

.tr-support-message__content {
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.tr-support-message__author {
    display: grid;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

.tr-support-message__author small {
    color: #64748b;
    font-size: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-message__bubble {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.tr-support-message--client .tr-support-message__bubble {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
    border-color: #7dd3fc;
}

.tr-support-message--admin .tr-support-message__bubble {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-color: #93c5fd;
}

.tr-support-message--system .tr-support-message__bubble {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-color: #dbe4f0;
}

.tr-support-notifications {
    padding: 0;
    overflow: hidden;
}

.tr-support-notifications__menu {
    display: grid;
    gap: 0;
}

.tr-support-notifications__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.tr-support-notifications__summary::-webkit-details-marker {
    display: none;
}

.tr-support-notifications__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.tr-support-notifications__icon span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f4c81;
}

.tr-support-notifications__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tr-support-notifications__copy strong,
.tr-support-notifications__copy small {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-notifications__copy small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.tr-support-notifications__body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
    min-width: 0;
}

.tr-support-notifications__actions {
    display: flex;
    justify-content: flex-end;
}

.tr-support-notification__actions {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tr-support-notification__actions .button-link {
    padding: 0;
    min-height: 0;
    line-height: 1.4;
}

.tr-support-notification,
.tr-support-notification p,
.tr-support-notification__meta,
.tr-support-notification__actions,
.tr-support-conversation-link small {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-conversation-link small {
    display: block;
    width: 100%;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .tr-support-layout {
        grid-template-columns: 1fr;
    }

    .tr-support-shell__head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .tr-support-attachment {
        grid-template-columns: 1fr;
    }

    .tr-support-status-panel__head,
    .tr-support-conversation-link__head,
    .tr-support-reports__group-head,
    .tr-support-topic__head {
        display: grid;
    }

    .tr-support-reports__meta {
        grid-template-columns: 1fr;
    }

    .tr-support-panel__meta,
    .tr-support-reports__stats,
    .tr-support-report-grid,
    .tr-support-report-grid--account {
        grid-template-columns: 1fr;
    }

    .tr-support-history-menu__summary,
    .tr-support-report-card__head,
    .tr-support-report-card__actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .tr-support-message,
    .tr-support-message--client,
    .tr-support-message--admin,
    .tr-support-message--system {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .tr-support-shell,
    .tr-support-reports {
        gap: 16px;
    }

    .tr-support-shell__head,
    .tr-support-sidebar,
    .tr-support-panel,
    .tr-support-report-card,
    .tr-support-empty,
    .tr-support-admin-presence,
    .tr-support-reports__stat,
    .tr-support-reports__group,
    .tr-support-ticket-state,
    .tr-support-status-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .tr-support-thread {
        max-height: none;
        gap: 12px;
    }

    .tr-support-message {
        padding: 14px;
        border-radius: 16px;
    }

    .tr-support-presence,
    .tr-support-history-group summary,
    .tr-support-history-menu__summary,
    .tr-support-history-menu__body,
    .tr-support-notifications__summary,
    .tr-support-notifications__body,
    .tr-support-sidebar__section-head,
    .tr-support-ticket-state__actions,
    .tr-support-composer__actions,
    .tr-support-report-card__head,
    .tr-support-report-card__actions,
    .tr-support-reports__group-head,
    .tr-support-topic__head,
    .tr-support-topic__actions {
        display: grid;
    }

    .tr-support-history-menu__summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tr-support-history-menu__summary .tr-support-history-group__count {
        justify-self: start;
    }

    .tr-support-notifications__summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tr-support-notifications__summary .tr-support-history-group__count {
        justify-self: start;
    }

    .tr-support-conversation-link {
        padding: 12px;
    }

    .tr-support-conversation-link strong,
    .tr-support-conversation-link small,
    .tr-support-conversation-link__meta,
    .tr-support-reports__group-copy h3,
    .tr-support-reports__group-copy p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .tr-support-composer select,
    .tr-support-composer textarea,
    .tr-support-composer__upload input[type="file"] {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .tr-support-message__inner,
    .tr-support-message--client .tr-support-message__inner {
        grid-template-columns: 1fr;
    }

    .tr-support-message--client .tr-support-message__avatar,
    .tr-support-message--client .tr-support-message__content {
        order: initial;
    }

    .tr-support-attachment {
        grid-template-columns: 1fr;
    }

    .tr-support-attachment__preview {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

.tr-support-history-menu__icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 18px;
}

.tr-support-admin-layout {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.tr-support-admin-layout__history,
.tr-support-admin-layout__workspace {
    min-width: 0;
    width: 100%;
}

.tr-support-history-menu--admin {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tr-support-history-menu--admin .tr-support-history-menu__summary {
    padding: 0;
}

.tr-support-history-menu--admin .tr-support-history-menu__body {
    padding: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.tr-support-history-menu--admin .tr-support-sidebar__section {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-width: 0;
    overflow: hidden;
}

.tr-support-history-menu--admin .tr-support-history-menu__list {
    padding: 0;
}

.tr-support-history-menu--admin .tr-support-conversation-link,
.tr-support-history-menu--admin .tr-support-conversation-link__head,
.tr-support-history-menu--admin .tr-support-conversation-link strong,
.tr-support-history-menu--admin .tr-support-conversation-link small,
.tr-support-history-menu--admin .tr-support-conversation-link__meta {
    min-width: 0;
    max-width: 100%;
}

.tr-support-history-menu--admin .tr-support-conversation-link {
    align-content: start;
}

.tr-support-history-menu--admin .tr-support-conversation-link small,
.tr-support-history-menu--admin .tr-support-conversation-link__meta {
    display: block;
}

.tr-support-history-menu--admin .tr-support-conversation-link strong,
.tr-support-history-menu--admin .tr-support-conversation-link small,
.tr-support-history-menu--admin .tr-support-conversation-link__meta {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tr-support-admin-ticket {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.tr-support-admin-ticket__hero,
.tr-support-admin-ticket__section {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tr-support-admin-ticket__hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.tr-support-admin-ticket__hero-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tr-support-admin-ticket__hero-copy h2,
.tr-support-admin-ticket__section-head h3 {
    margin: 0;
    color: #0f172a;
}

.tr-support-admin-ticket__hero-copy p,
.tr-support-admin-ticket__section-head p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.tr-support-admin-ticket__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.tr-support-admin-ticket__section {
    display: grid;
    gap: 16px;
}

.tr-support-admin-ticket__section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.tr-support-panel__meta--admin-workspace {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tr-support-admin-layout__workspace .tr-support-thread {
    max-height: none;
    min-height: 420px;
    padding-right: 6px;
}

.tr-support-admin-layout__workspace [data-tr-admin-actions],
.tr-support-admin-layout__workspace [data-tr-linked-reports],
.tr-support-admin-layout__workspace [data-tr-support-composer-panel] {
    gap: 0;
}

.tr-support-admin-layout__workspace .tr-support-status-panel,
.tr-support-admin-layout__workspace .tr-support-report-grid,
.tr-support-admin-layout__workspace .tr-support-composer {
    margin: 0;
}

@media (max-width: 900px) {
    .tr-support-history-menu--admin .tr-support-history-menu__body {
        grid-template-columns: 1fr;
    }

    .tr-support-admin-ticket__hero,
    .tr-support-admin-ticket__section-head {
        display: grid;
    }

    .tr-support-admin-ticket__hero-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .tr-support-admin-ticket__hero,
    .tr-support-admin-ticket__section {
        padding: 16px;
        border-radius: 18px;
    }
}
