.rally-support-admin .rally-toolbar {
    margin: 16px 0;
}

.rally-support-admin {
    color: #172033;
}

.rally-support-admin h1 {
    font-weight: 700;
    letter-spacing: 0;
}

.rally-ticket-filters {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(240px, 1fr) repeat(6, minmax(112px, max-content)) auto auto;
    overflow: visible;
    padding: 12px;
    position: relative;
    white-space: nowrap;
    z-index: 5;
}

.rally-ticket-filters .button,
.rally-ticket-filters select,
.rally-ticket-filters input[type="search"] {
    box-sizing: border-box;
    height: 34px;
    line-height: 32px;
    min-height: 34px;
}

.rally-ticket-filters .button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    padding-bottom: 0;
    padding-top: 0;
}

.rally-ticket-filters p.submit {
    align-items: center;
    display: flex;
    height: 34px;
    margin: 0;
    padding: 0;
}

.rally-ticket-filters > * {
    align-self: center;
    margin-bottom: 0;
    margin-top: 0;
}

.rally-ticket-filters input[type="search"] {
    min-width: 0;
    width: 100%;
}

.rally-filter-toggle {
    display: none !important;
}

.rally-filter-advanced {
    display: contents;
}

.rally-quick-views {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 8px;
}

.rally-quick-views .button {
    border-radius: 999px;
}

.rally-bulk-actions {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

.rally-bulk-actions[hidden] {
    display: none;
}

.rally-bulk-actions label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.rally-bulk-actions select {
    min-height: 30px;
}

.rally-bulk-actions p.submit {
    margin: 0;
    padding: 0;
}

.rally-bulk-count {
    color: #475569;
    font-weight: 600;
    min-width: 78px;
}

.rally-ticket-table {
    border: 1px solid #d7dde7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: visible;
    table-layout: fixed;
    width: 100%;
}

.rally-ticket-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rally-ticket-table tbody tr:hover {
    background: #f8fbff;
}

.rally-ticket-table tbody tr.is-assign-open {
    position: relative;
    z-index: 10000;
}

.rally-ticket-table tbody tr.is-assign-open td {
    position: relative;
    z-index: 10000;
}

.rally-ticket-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.rally-ticket-subject-col {
    width: 30%;
}

.rally-ticket-customer-col {
    width: 12%;
}

.rally-ticket-assigned-col {
    width: 9%;
}

.rally-ticket-status-col,
.rally-ticket-priority-col {
    width: 8%;
}

.rally-ticket-response-col {
    width: 13%;
}

.rally-ticket-updated-col {
    width: 8%;
}

.rally-ticket-mailbox-col {
    width: 56px;
}

.rally-ticket-actions-col {
    overflow: visible !important;
    width: 136px;
}

.rally-ticket-select-col {
    text-align: center;
    width: 34px;
}

.rally-ticket-select-col input[type="checkbox"] {
    margin: 0;
}

.rally-assigned-cell {
    color: #475569;
    font-size: 12px;
    max-width: 130px;
}

.rally-ticket-meta,
.rally-last-response span,
.rally-muted {
    color: #64748b;
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 3px;
}

.rally-last-response {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.rally-last-response strong {
    color: #334155;
    display: block;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rally-ticket-row-actions {
    align-items: center;
    display: flex;
    gap: 4px;
    min-width: 132px;
    overflow: visible;
    position: relative;
    white-space: nowrap;
    z-index: 20;
}

.rally-ticket-row-actions form {
    align-items: center;
    display: inline-flex;
    gap: 4px;
    margin: 0;
}

.rally-ticket-row-actions .rally-row-action {
    align-items: center;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-height: 28px;
    min-width: 28px;
    padding: 0;
    width: 28px;
}

.rally-ticket-row-actions .dashicons {
    font-size: 16px;
    height: 16px;
    line-height: 16px;
    width: 16px;
}

.rally-assign-menu {
    display: inline-flex;
    overflow: visible;
    position: relative;
    z-index: 25;
}

.rally-assign-menu[open] {
    z-index: 10020;
}

.rally-assign-menu summary {
    list-style: none;
}

.rally-assign-menu summary::-webkit-details-marker {
    display: none;
}

.rally-assign-options {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 2px;
    min-width: 160px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10030;
}

.rally-assign-options select {
    font-size: 12px;
    min-width: 150px;
    width: 100%;
}

.rally-assign-options a,
.rally-assign-options button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #172033;
    cursor: pointer;
    display: block;
    font-size: 12px;
    line-height: 1.3;
    padding: 7px 8px;
    text-align: left;
    width: 100%;
}

.rally-assign-options a {
    box-sizing: border-box;
    text-decoration: none;
}

.rally-assign-options a:hover,
.rally-assign-options a:focus,
.rally-assign-options button:hover,
.rally-assign-options button:focus {
    background: #eef4ff;
}

.rally-assign-options a.is-current,
.rally-assign-options button.is-current {
    background: #e0ecff;
    color: #1d4ed8;
    font-weight: 700;
}

.rally-toast-wrap {
    display: grid;
    gap: 8px;
    position: fixed;
    right: 24px;
    top: 48px;
    z-index: 100000;
}

.rally-toast {
    background: #172033;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    max-width: 340px;
    padding: 10px 12px;
    transition: opacity .2s ease, transform .2s ease;
}

.rally-toast-success {
    background: #166534;
}

.rally-toast-error {
    background: #991b1b;
}

.rally-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.rally-mailbox-cell {
    text-align: center;
    width: 48px;
}

.rally-mailbox-dot {
    align-items: center;
    background: var(--rally-mailbox-color, #2563eb);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1px 2px rgba(15, 23, 42, 0.18);
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
    width: 24px;
}

.rally-mailbox-empty {
    color: #94a3b8;
    font-size: 13px;
}

.rally-badge {
    border: 1px solid #d7dde7;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
}

.rally-badge-new,
.rally-badge-open {
    background: #eaf3ff;
    border-color: #b8d7ff;
    color: #155399;
}

.rally-badge-pending,
.rally-badge-normal {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a4b00;
}

.rally-badge-resolved,
.rally-badge-closed,
.rally-badge-low {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.rally-badge-spam,
.rally-badge-high,
.rally-badge-urgent {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.rally-ticket-filters {
    gap: 8px;
}

.rally-ticket-filters input[type="search"] {
    max-width: none;
    min-width: 0;
}

.rally-ticket-filters select {
    width: 100%;
}

.rally-filter-dropdown {
    position: relative;
    z-index: 30;
}

.rally-filter-dropdown summary {
    align-items: center;
    background: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    line-height: 32px;
    min-height: 34px;
    min-width: 132px;
    padding: 0 28px 0 10px;
    width: 100%;
}

@media (max-width: 1500px) {
    .rally-ticket-filters {
        grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(112px, max-content)) auto auto;
    }
}

@media (max-width: 1180px) {
    .rally-ticket-filters {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(112px, max-content)) auto;
        white-space: normal;
    }
}

.rally-settings-card {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    margin: 16px 0;
    max-width: 980px;
    padding: 14px 16px;
}

.rally-settings-card h2 {
    margin: 0 0 6px;
}

.rally-settings-card p {
    color: #475569;
    margin: 0;
}

.rally-setup-cards,
.rally-health-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 14px 0;
}

.rally-setup-cards > div,
.rally-health-grid > div {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: #172033;
    display: grid;
    gap: 4px;
    padding: 12px;
    text-decoration: none;
}

.rally-maintenance-form {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.rally-maintenance-form label {
    display: grid;
    gap: 4px;
}

.rally-maintenance-form input[type="number"] {
    max-width: 160px;
}

.rally-setup-cards span,
.rally-health-grid span {
    color: #64748b;
    font-size: 12px;
}

.rally-rule-form {
    align-items: end;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
}

.rally-rule-form label {
    display: grid;
    gap: 4px;
    margin: 0;
}

.rally-rule-form input[type="text"] {
    min-width: 240px;
}

.rally-checkbox-inline {
    align-items: center !important;
    display: inline-flex !important;
    gap: 6px !important;
}

.rally-rule-preview {
    max-width: 720px;
}

.rally-log-table {
    table-layout: fixed;
    width: 100%;
}

.rally-log-table th,
.rally-log-table td {
    overflow-wrap: anywhere;
    vertical-align: top;
}

.rally-log-table th:nth-child(1) {
    width: 150px;
}

.rally-log-table th:nth-child(2),
.rally-log-table th:nth-child(3) {
    width: 90px;
}

.rally-log-table th:nth-child(4) {
    width: 130px;
}

.rally-log-table th:nth-child(5) {
    width: 24%;
}

.rally-log-table code {
    white-space: pre-wrap;
    word-break: break-word;
}

.rally-copy-context {
    box-sizing: border-box;
    display: block;
    font-family: monospace;
    font-size: 11px;
    height: 42px;
    margin-top: 6px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.rally-filter-dropdown[open] summary {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.rally-filter-menu {
    background: #fff;
    border: 1px solid #c3cad5;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    left: 0;
    margin-top: 6px;
    min-width: 180px;
    padding: 8px;
    position: absolute;
    top: 100%;
    white-space: normal;
    z-index: 1000;
}

.rally-filter-menu label {
    align-items: center;
    display: flex !important;
    font-weight: 500 !important;
    gap: 8px;
    margin: 0 !important;
    padding: 6px 4px;
}

.rally-filter-menu input {
    margin: 0 !important;
}

.rally-log-search {
    min-height: 32px;
    min-width: 260px;
}

.rally-pagination,
.rally-pagination-summary {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 14px 0 0;
}

.rally-pagination span,
.rally-pagination-summary {
    color: #64748b;
}

.rally-support-admin label,
.rally-support-form label,
.rally-ticket-side label {
    display: block;
    font-weight: 600;
    margin: 0 0 14px;
}

.rally-support-admin input[type="text"],
.rally-support-admin input[type="email"],
.rally-support-admin input[type="number"],
.rally-support-admin input[type="password"],
.rally-support-admin select,
.rally-support-admin textarea,
.rally-support-form input,
.rally-support-form select,
.rally-support-form textarea,
.rally-ticket-side select {
    box-sizing: border-box;
    display: block;
    margin-top: 6px;
    max-width: 100%;
    width: 100%;
}

.rally-support-admin .rally-ticket-row-actions select {
    display: inline-block;
    margin-top: 0;
    width: 96px;
}

.rally-grid,
.rally-ticket-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    margin-top: 18px;
}

.rally-ticket-main,
.rally-ticket-side,
.rally-ticket-conversation {
    min-width: 0;
}

.rally-ticket-main {
    grid-column: 1;
    grid-row: 1;
}

.rally-sla-banner {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #64748b;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 14px 0 4px;
    padding: 12px 14px;
}

.rally-sla-banner.is-waiting {
    background: #fff7ed;
    border-color: #fed7aa;
    border-left-color: #f97316;
}

.rally-sla-banner.has-triggered-alert {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
}

.rally-sla-main {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.rally-sla-main .dashicons {
    color: #f97316;
}

.rally-sla-main strong,
.rally-sla-main span {
    display: block;
}

.rally-sla-main span {
    color: #475569;
    margin-top: 2px;
}

.rally-sla-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.rally-sla-pill {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    white-space: nowrap;
}

.rally-sla-pill.is-expired {
    border-color: #fca5a5;
    color: #991b1b;
}

.rally-ticket-side {
    align-self: start;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.rally-ticket-conversation {
    grid-column: 1;
    grid-row: 2;
}

.rally-card,
.rally-support-panel,
.rally-message,
.rally-reply-box,
.rally-ticket-side {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    margin: 0 0 16px;
    padding: 18px;
}

.rally-reply-box {
    border-top: 4px solid #2563eb;
}

.rally-reply-box h2,
.rally-ticket-conversation h2,
.rally-card h2,
.rally-ticket-side h2 {
    font-size: 15px;
    margin: 0 0 14px;
}

.rally-ticket-conversation h2 {
    font-size: 17px;
    margin-top: 0;
}

.rally-entry-reply-target {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e3a8a;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 0 0 12px;
    padding: 10px 12px;
}

.rally-entry-reply-target[hidden] {
    display: none;
}

.rally-entry-reply-target strong {
    overflow-wrap: anywhere;
}

.rally-message header {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: -4px 0 12px;
    padding-bottom: 10px;
}

.rally-message-header-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rally-message-recipient {
    display: block;
    margin-top: 3px;
}

.rally-entry-reply-button {
    min-height: 26px;
}

.rally-message span,
.rally-ticket-list span {
    color: #646970;
    font-size: 13px;
}

.rally-checkbox-row {
    margin-bottom: 8px;
}

.rally-checkbox-row span {
    color: #646970;
    font-weight: 400;
}

.rally-customer-address {
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    margin: 12px 0 16px;
    padding: 12px;
}

.rally-customer-address strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rally-customer-address address {
    font-style: normal;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.rally-customer-address span {
    color: #646970;
    display: block;
    font-size: 12px;
    margin-top: 8px;
}

.rally-shipstation-send {
    margin-top: 12px;
}

.rally-shipstation-send .button {
    width: 100%;
}

.rally-tool-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 14px;
}

.rally-icon-button {
    align-items: center;
    display: inline-flex !important;
    gap: 6px;
    justify-content: center;
    line-height: 1.25;
    min-height: 34px;
    padding-bottom: 6px;
    padding-top: 6px;
    white-space: normal;
    width: 100%;
}

.rally-icon-button span:last-child {
    overflow-wrap: anywhere;
}

.rally-icon-button .dashicons,
.rally-support-admin .button .dashicons {
    font-size: 16px;
    height: 16px;
    line-height: 16px;
    width: 16px;
}

.rally-subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 0 12px;
}

.rally-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rally-message-note {
    background: #fffaf0;
}

.rally-message-outbound {
    background: #f6fbff;
    border-color: #bfdbfe;
}

.rally-message-inbound {
    border-color: #d7dde7;
}

.rally-file-field {
    align-items: center;
    border: 1px dashed #b6c2d4;
    border-radius: 8px;
    color: #475569;
    display: flex !important;
    gap: 8px;
    margin-top: 12px !important;
    padding: 12px;
}

.rally-file-field input {
    margin: 0 0 0 auto !important;
    width: auto !important;
}

.rally-attachments {
    border-top: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 12px 0 0;
}

.rally-attachments li {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    display: inline-flex;
    gap: 6px;
    margin: 0;
    max-width: 100%;
    padding: 6px 10px;
}

.rally-attachments a {
    font-weight: 700;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rally-attachments .dashicons {
    color: #64748b;
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.rally-canned-insert {
    margin-top: -2px;
}

.rally-mobile-dock-title {
    display: none;
}

.rally-canned-list {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.rally-canned-button {
    align-items: flex-start;
    display: inline-flex !important;
    flex-direction: column;
    gap: 3px;
    height: auto;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 46px;
    padding: 8px 10px !important;
    text-align: left;
    white-space: normal;
}

.rally-canned-button span {
    color: #172033;
    font-weight: 700;
}

.rally-canned-button small,
.rally-canned-categories span {
    color: #64748b;
    font-size: 12px;
}

.rally-inline-form {
    display: inline-block;
    margin: 0;
}

.rally-modal-overlay {
    align-items: center;
    background: rgba(15, 23, 42, 0.46);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100000;
}

.rally-modal {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    max-width: 440px;
    padding: 20px;
    width: min(440px, 100%);
}

.rally-modal h2 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.rally-modal p {
    color: #475569;
    font-size: 14px;
    margin: 0 0 18px;
}

.rally-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.rally-support-portal {
    margin: 24px 0;
}

.rally-support-form button {
    background: #1d4ed8;
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 16px;
}

.rally-support-notice {
    border-radius: 5px;
    margin: 0 0 14px;
    padding: 10px 12px;
}

.rally-support-notice-success {
    background: #ecfdf3;
    border: 1px solid #86efac;
}

.rally-support-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.rally-ticket-list article {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.rally-ticket-list article:last-child {
    border-bottom: 0;
}

.rally-ticket-list strong,
.rally-ticket-list span {
    display: block;
}

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

    .rally-ticket-main,
    .rally-ticket-side,
    .rally-ticket-conversation {
        grid-column: 1;
        grid-row: auto;
    }

    .rally-ticket-filters {
        grid-template-columns: 1fr;
        white-space: normal;
    }

    .rally-ticket-filters select,
    .rally-ticket-filters input[type="search"],
    .rally-ticket-filters .button {
        width: 100%;
    }
}

@media (max-width: 782px) {
    .rally-support-admin {
        margin-left: 0;
        padding: 0 10px 24px;
    }

    .rally-support-admin h1 {
        font-size: 23px;
        line-height: 1.2;
        margin: 14px 0 10px;
        overflow-wrap: anywhere;
    }

    .rally-ticket-layout {
        gap: 12px;
        margin-top: 12px;
    }

    .rally-sla-banner {
        align-items: stretch;
        display: grid;
        gap: 10px;
        margin: 10px 0 12px;
        padding: 12px;
    }

    .rally-sla-meta {
        justify-content: flex-start;
    }

    .rally-ticket-detail {
        padding-bottom: 330px;
    }

    .rally-ticket-main {
        grid-row: 1;
    }

    .rally-ticket-conversation {
        grid-row: 2;
    }

    .rally-ticket-side {
        grid-row: 3;
    }

    .rally-reply-box,
    .rally-ticket-side,
    .rally-ticket-side .rally-card,
    .rally-message {
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 14px;
        width: 100%;
    }

    .rally-ticket-side {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .rally-reply-box h2,
    .rally-ticket-conversation h2,
    .rally-card h2,
    .rally-ticket-side h2 {
        font-size: 16px;
    }

    .rally-ticket-quick-controls {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #d7dde7;
        box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.18);
        box-sizing: border-box;
        left: 0;
        max-height: 42vh;
        overflow: auto;
        padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        bottom: 0;
        z-index: 9998;
    }

    .rally-mobile-dock-title {
        align-items: center;
        color: #172033;
        display: flex;
        font-size: 13px;
        font-weight: 800;
        justify-content: space-between;
        letter-spacing: .02em;
        margin: 0 0 6px;
        text-transform: uppercase;
    }

    .rally-ticket-quick-controls .rally-card,
    .rally-ticket-quick-controls .rally-ticket-update-form {
        border: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .rally-ticket-quick-controls .rally-card h2 {
        display: none;
    }

    .rally-ticket-quick-controls .rally-canned-list {
        display: flex;
        gap: 6px;
        margin: 0 -10px 7px;
        overflow-x: auto;
        padding: 0 10px 3px;
        scrollbar-width: none;
    }

    .rally-ticket-quick-controls .rally-canned-list::-webkit-scrollbar {
        display: none;
    }

    .rally-ticket-quick-controls .rally-canned-button {
        border-radius: 999px;
        flex: 0 0 auto;
        min-height: 32px;
        max-width: 190px;
        padding: 5px 11px !important;
    }

    .rally-ticket-quick-controls .rally-canned-button small {
        display: none;
    }

    .rally-ticket-update-form {
        display: grid;
        align-items: end;
        gap: 6px;
        grid-template-columns: minmax(78px, .8fr) minmax(88px, .9fr) minmax(96px, 1fr) 64px;
    }

    .rally-ticket-update-form label {
        background: #f8fafc;
        border: 1px solid #d7dde7;
        border-radius: 10px;
        box-sizing: border-box;
        display: grid;
        font-size: 10px;
        gap: 2px;
        margin: 0;
        min-width: 0;
        padding: 4px 6px 6px;
    }

    .rally-ticket-update-form .rally-toolbar-field span {
        color: #64748b;
        font-weight: 800;
        letter-spacing: .03em;
        line-height: 1;
        text-transform: uppercase;
    }

    .rally-ticket-update-form select {
        background: transparent;
        border: 0;
        box-shadow: none;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        min-height: 22px;
        padding: 0 18px 0 0;
    }

    .rally-ticket-update-form p.submit {
        align-self: end;
        grid-column: auto;
        margin: 0;
        padding: 0;
    }

    .rally-ticket-update-form .button {
        border-radius: 10px;
        min-height: 43px;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .rally-reply-box .wp-editor-wrap,
    .rally-reply-box .wp-editor-container,
    .rally-reply-box .mce-tinymce,
    .rally-reply-box .mce-container,
    .rally-reply-box .mce-container-body,
    .rally-reply-box iframe {
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
    }

    .rally-reply-box .mce-toolbar-grp,
    .rally-reply-box .quicktags-toolbar {
        overflow-x: auto;
    }

    .rally-file-field {
        align-items: center;
        background: #f8fafc;
        border: 1px solid #d7dde7;
        border-radius: 8px;
        display: flex;
        gap: 8px;
        padding: 10px;
    }

    .rally-file-field input[type="file"] {
        min-width: 0;
        width: 100%;
    }

    body.toplevel_page_rally-support #wpadminbar .display-name {
        display: none;
    }

    .rally-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rally-icon-button {
        justify-content: center;
        min-height: 42px;
        white-space: normal;
        width: 100%;
    }

    .rally-message header {
        align-items: flex-start;
        display: grid;
        gap: 4px;
    }

    .rally-message-body,
    .rally-message-body * {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .rally-attachments li {
        border-radius: 8px;
        display: flex;
        width: 100%;
    }

    .rally-attachments a {
        max-width: none;
        min-width: 0;
    }

    .rally-quick-views {
        flex-wrap: nowrap;
        gap: 6px;
        margin: 8px -10px 8px;
        overflow-x: auto;
        padding: 0 10px 4px;
        scrollbar-width: none;
    }

    .rally-quick-views::-webkit-scrollbar {
        display: none;
    }

    .rally-quick-views .button {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 32px;
        padding: 0 13px;
        text-align: center;
        white-space: nowrap;
    }

    .rally-ticket-filters {
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        margin: 8px 0 10px;
        padding: 10px;
    }

    .rally-filter-toggle {
        display: inline-flex !important;
    }

    .rally-filter-advanced {
        display: none;
        gap: 8px;
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .rally-ticket-filters.is-filter-open .rally-filter-advanced {
        display: grid;
    }

    .rally-ticket-filters .button,
    .rally-ticket-filters select,
    .rally-ticket-filters input[type="search"] {
        font-size: 15px;
        height: 42px;
        line-height: 40px;
        min-height: 42px;
    }

    .rally-ticket-filters input[type="search"] {
        height: 42px;
    }

    .rally-bulk-actions {
        border-radius: 12px;
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .rally-bulk-actions label {
        align-items: stretch;
        display: grid;
        gap: 6px;
    }

    .rally-ticket-table,
    .rally-ticket-table thead,
    .rally-ticket-table tbody,
    .rally-ticket-table th,
    .rally-ticket-table td,
    .rally-ticket-table tr {
        display: block;
    }

    .rally-ticket-table {
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .rally-ticket-table thead {
        display: none;
    }

    .rally-ticket-table tbody {
        display: grid;
        gap: 12px;
    }

    .rally-ticket-table tbody tr {
        background: #fff;
        border: 1px solid #d7dde7;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
        display: grid;
        gap: 8px 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .rally-ticket-table tbody tr:hover {
        background: #fff;
    }

    .rally-ticket-table td {
        border: 0;
        box-sizing: border-box;
        min-height: 32px;
        overflow: visible;
        padding: 0;
        white-space: normal;
        width: 100% !important;
    }

    .rally-ticket-table td::before {
        color: #64748b;
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .03em;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .rally-ticket-select-col {
        align-items: center;
        align-self: start;
        display: flex !important;
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
        min-height: 34px !important;
        order: unset;
        padding: 0 !important;
        text-align: right;
        width: 36px !important;
    }

    .rally-ticket-select-col::before {
        display: none !important;
    }

    .rally-ticket-select-col input[type="checkbox"] {
        height: 26px;
        margin: 0;
        width: 26px;
    }

    .rally-ticket-subject-col {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 16px;
        font-weight: 700;
        order: unset;
        padding-right: 48px;
    }

    .rally-ticket-subject-col::before {
        display: none !important;
    }

    .rally-ticket-subject-col a {
        display: block;
        line-height: 1.3;
        text-decoration: none;
    }

    .rally-ticket-meta {
        font-size: 12px;
        font-weight: 600;
    }

    .rally-ticket-customer-col {
        grid-column: 1 / -1;
        order: unset;
    }

    .rally-ticket-response-col {
        border-top: 1px solid #eef2f7;
        grid-column: 1 / -1;
        order: unset;
        padding-top: 8px;
    }

    .rally-ticket-status-col,
    .rally-ticket-priority-col {
        align-items: center;
        display: flex !important;
        gap: 8px;
        min-height: 30px;
    }

    .rally-ticket-status-col {
        grid-column: 1;
    }

    .rally-ticket-priority-col {
        grid-column: 2;
    }

    .rally-ticket-status-col::before,
    .rally-ticket-priority-col::before {
        display: none !important;
    }

    .rally-ticket-status-col .rally-badge,
    .rally-ticket-priority-col .rally-badge {
        max-width: 100%;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
    }

    .rally-ticket-assigned-col,
    .rally-ticket-mailbox-col,
    .rally-ticket-updated-col {
        align-items: center;
        border-top: 1px solid #eef2f7;
        display: grid !important;
        gap: 8px;
        grid-column: 1 / -1;
        grid-template-columns: 96px minmax(0, 1fr);
        padding-top: 8px;
    }

    .rally-ticket-mailbox-col::before,
    .rally-ticket-assigned-col::before,
    .rally-ticket-updated-col::before {
        margin: 0;
    }

    .rally-ticket-assigned-col,
    .rally-ticket-customer-col,
    .rally-ticket-response-col,
    .rally-ticket-updated-col {
        overflow-wrap: anywhere;
    }

    .rally-assigned-cell {
        max-width: none;
    }

    .rally-ticket-actions-col {
        border-top: 1px solid #eef2f7 !important;
        display: flex !important;
        grid-column: 1 / -1;
        gap: 8px;
        justify-content: flex-end;
        min-width: 0;
        order: unset;
        padding-top: 12px !important;
    }

    .rally-ticket-actions-col::before {
        align-self: center;
        margin: 0 auto 0 0;
    }

    .rally-ticket-row-actions {
        min-width: 0;
        width: 100% !important;
    }

    .rally-ticket-row-actions .rally-row-action {
        height: 36px;
        min-height: 36px;
        min-width: 36px;
        width: 36px;
    }

    .rally-ticket-row-actions .dashicons {
        font-size: 18px;
        height: 18px;
        line-height: 18px;
        width: 18px;
    }

    .rally-assign-options {
        left: auto;
        min-width: 190px;
        right: 0;
    }

    .rally-support-admin .rally-ticket-row-actions select {
        min-height: 40px;
        width: 180px;
    }

    .rally-pagination,
    .rally-pagination-summary {
        justify-content: center;
    }
}
