.ticket-shell {
    max-width: 980px;
}

.ticket-panel,
.ticket-thread {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
}

.ticket-thread-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.ticket-message {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
}

.ticket-message-admin {
    border-left-color: #006699;
    background: #f8fafc;
}

.ticket-message-user,
.ticket-message-external {
    border-left-color: #009966;
}

.ticket-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}

.ticket-message-body {
    white-space: normal;
    line-height: 1.6;
}

.ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ticket-reply {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.ticket-details {
    margin: 0;
}

.ticket-details dt {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 14px;
}

.ticket-details dd {
    margin: 4px 0 0;
    font-weight: 600;
}

.ticket-details dd span {
    color: #6b7280;
    font-weight: 500;
}

.ticket-status-open,
.ticket-priority-normal {
    background: #e8f3ff;
    color: #006699;
}

.ticket-status-pending,
.ticket-priority-high {
    background: #fff4de;
    color: #b45309;
}

.ticket-status-answered,
.ticket-priority-low {
    background: #e8fff3;
    color: #047857;
}

.ticket-status-closed {
    background: #eef0f3;
    color: #4b5563;
}

.ticket-priority-urgent {
    background: #ffe8e8;
    color: #b91c1c;
}

.ticket-public-section {
    padding: 80px 0;
    background: #f5f8fa;
}

.ticket-public-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.ticket-public-header h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1f2937;
}

.ticket-public-header p {
    color: #4b5563;
    font-size: 16px;
}
