.spp-frontend-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 2em auto;
    padding-bottom: 3em;
}

.spp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.spp-header h2 {
    margin: 0;
}

.spp-entries-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 13px;
    margin-bottom: 2rem !important;
}

/* Rounded corners via cells (overflow:hidden on table is unreliable) */
.spp-entries-table thead tr th:first-child { border-radius: 10px 0 0 0; }
.spp-entries-table thead tr th:last-child  { border-radius: 0 10px 0 0; }
.spp-entries-table tbody tr:last-child td:first-child { border-radius: 0 0 0 10px; }
.spp-entries-table tbody tr:last-child td:last-child  { border-radius: 0 0 10px 0; }

.spp-entries-table th {
    padding: 8px 10px;
    text-align: left;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    color: #475569;
}

.spp-entries-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    white-space: nowrap;
}

.spp-entries-table td.wrap { white-space: normal; }
.spp-entries-table tbody tr:last-child td { border-bottom: none; }

/* Left stripe on first cell — always present, transparent by default */
.spp-entries-table tbody tr td:first-child {
    border-left: 3px solid transparent;
    transition: border-color 0.12s;
}

/* Hover: neutral rows */
.spp-entries-table tbody tr:not(.spp-row-colored):hover { background-color: #f8fafc; }
.spp-entries-table tbody tr:not(.spp-row-colored):hover td:first-child { border-left-color: #0ea5e9; }

/* Status row colours */
.spp-entries-table tr.spp-status-in-progress    { background: #ffa500; color: #1a0800; }
.spp-entries-table tr.spp-status-ready          { background: #a900ff; color: white; }
.spp-entries-table tr.spp-status-approved       { background: #197b07; color: white; }
.spp-entries-table tr.spp-status-cancelled      { background: #830000; color: white; }
.spp-entries-table tr.spp-mode-vector           { background: #feddff; color: #4d0456; }
.spp-entries-table tr.spp-mode-template         { background: #fbfbdd; color: #555546; }
.spp-entries-table tr.spp-mode-artwork          { background: #e8f9fd; color: #473e89; }
.spp-entries-table tr.spp-mode-proposal-artwork { background: #f3e4ee; color: #514c4f; }

/* Hover: coloured rows — darken + white left stripe */
.spp-entries-table tr.spp-row-colored:hover { filter: brightness(0.88); }
.spp-entries-table tr.spp-row-colored:hover td:first-child { border-left-color: rgba(255,255,255,0.65); }

.spp-actions a {
    margin-right: 8px;
}

.spp-update-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin-bottom: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}

.spp-update-notice i { color: #3b82f6; }

.spp-update-notice #spp-refresh-btn {
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
}

.spp-update-notice #spp-refresh-btn:hover { background: #1d4ed8; border-color: #1d4ed8; }

.spp-assigned-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin-bottom: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
}

.spp-assigned-notice i { color: #f59e0b; }

.spp-assigned-notice #spp-assigned-refresh-btn {
    padding: 4px 12px;
    font-size: 13px;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    background: #f59e0b;
    color: #fff;
    cursor: pointer;
}

.spp-assigned-notice #spp-assigned-refresh-btn:hover { background: #d97706; border-color: #d97706; }
.spp-assigned-notice .spp-notice-dismiss { color: #fcd34d; }
.spp-assigned-notice .spp-notice-dismiss:hover { color: #92400e; }

.spp-notice-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
}

.spp-notice-dismiss:hover { color: #1e40af; }

.spp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.spp-filter-bar select {
    width: auto;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #334155;
    background: #fff;
    cursor: pointer;
}

.spp-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.spp-search-input {
    width: 260px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #334155;
    background: #fff;
}
.spp-search-input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.12); }

.spp-search-count {
    font-size: 13px;
    color: #64748b;
    margin-left: 8px;
}

.spp-search-empty {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 2rem;
    text-align: center;
}

.spp-header { display: flex; align-items: baseline; gap: 10px; }

.spp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    background: #0ea5e9;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.spp-filter-btn:hover { background: #0369a1; border-color: #0369a1; }

.spp-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    white-space: nowrap;
}

.spp-filter-reset:hover { color: #334155; border-color: #94a3b8; }

.spp-entries-table td.spp-action-cell {
    padding: 0;
    text-align: center;
    width: 1%;
}

.spp-entries-table td.spp-action-cell a {
    display: block;
    padding: 5px 12px;
    color: inherit;
    text-decoration: none;
    font-size: 15px;
}

.spp-entries-table th.sortable a {
    text-decoration: none;
    color: inherit;
}

.spp-entries-table th.sortable a:hover {
    color: #0073aa;
}

.spp-entries-table th.sorted a::after {
    font-family: dashicons;
    font-size: 16px;
    vertical-align: middle;
    margin-left: 5px;
}

.spp-entries-table th.sorted.asc a::after {
    content: "\f142";
}

.spp-entries-table th.sorted.desc a::after {
    content: "\f140";
}

.spp-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

.spp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    background: #fff;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.spp-pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0ea5e9;
}

.spp-pagination .page-numbers.current {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
    font-weight: 600;
}

.spp-pagination .dots {
    min-width: 28px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    border: none;
    background: none;
}

.spp-button {
    display: inline-block;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.spp-button-primary {
    background-color: #0ea5e9;
    color: #fff !important;
    border-color: #0284c7;
}

.spp-button-primary:hover {
    background-color: #0284c7;
    border-color: #0369a1;
}

.spp-button-danger {
    background-color: #d63638;
    color: #fff;
    border-color: #b02a2c;
}

.spp-button-danger:hover {
    background-color: #b02a2c;
}

/* Row change highlights (after poll refresh) */
.spp-entries-table tr.spp-row-highlight-new td:first-child     { border-left-color: #16a34a !important; }
.spp-entries-table tr.spp-row-highlight-updated td:first-child  { border-left-color: #0ea5e9 !important; }
.spp-entries-table tr.spp-row-highlight-new     { background: #f0fdf4 !important; }
.spp-entries-table tr.spp-row-highlight-updated { background: #eff6ff !important; }
.spp-entries-table tr.spp-row-highlight-fade    { transition: background 0.6s, border-color 0.6s; background: transparent !important; }
.spp-entries-table tr.spp-row-highlight-fade td:first-child { border-left-color: transparent !important; }

.spp-row-badge {
    font-size: 10px;
    margin-right: 5px;
    vertical-align: middle;
}
.spp-row-badge-new     { color: #16a34a; }
.spp-row-badge-updated { color: #0ea5e9; }

/* Status card */
.spp-status-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 0.5em;
}

/* Priority value inline display */
.spp-prio-value {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

/* Urgent priority */
.spp-prio-urgent {
    background-color: #dc2626;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Copy-to-clipboard (ctc plugin) wrapper: subtle border instead of thick default */
.ctc-wrapper {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
}

.spp-button-small {
    padding: 5px 10px;
    font-size: 12px;
    margin-left: 5px;
}

.spp-form-wrapper .spp-form-field {
    margin-bottom: 0.5em;
}

.spp-form-wrapper label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 3px;
}

.spp-form-wrapper input[type="date"],
.spp-form-wrapper input[type="text"],
.spp-form-wrapper select,
.spp-form-wrapper textarea {
    width: 100%;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    color: #334155;
}

.spp-form-wrapper input[type="text"]:focus,
.spp-form-wrapper select:focus,
.spp-form-wrapper textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.spp-form-wrapper h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin: 1em 0 0.4em;
    padding: 0;
}
.spp-edit-layout > div > h3:first-child {
    margin-top: 0;
}
.spp-edit-layout > div > h3:not(:first-child) {
    margin-top: 2em;
}

/* Edit page layout */
.spp-edit-title {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-block;
}
.spp-edit-title.spp-mode-vector         { background: #feddff; color: #4d0456; }
.spp-edit-title.spp-mode-template       { background: #fbfbdd; color: #555546; }
.spp-edit-title.spp-mode-artwork        { background: #e8f9fd; color: #473e89; }
.spp-edit-title.spp-mode-proposal-artwork { background: #f3e4ee; color: #514c4f; }

.spp-edit-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-column-gap: 32px;
    margin-top: 16px;
}

/* Info table on edit page */
.spp-info-wrap {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    margin-top: 0.5em;
    overflow: hidden !important;
    padding: 10px 0 !important;
}
.spp-info-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    margin-top: 0.5em;
    font-size: 13px;
}
.spp-info-row {
    display: flex;
    padding: 5px 10px;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}
.spp-info-row--last,
.spp-info-row:last-child { border-bottom: none; }
.spp-info-label {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    width: 120px;
    flex-shrink: 0;
}
.spp-info-value { color: #334155; flex: 1; min-width: 0; }
.spp-data-section {
    font-size: 13px;
    margin-top: 0.5em;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.spp-data-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.spp-data-section th,
.spp-data-section td {
    padding: 5px 10px !important;
    vertical-align: top;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}
.spp-data-section tr:last-child th,
.spp-data-section tr:last-child td { border-bottom: none !important; }
.spp-data-section th {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    width: 160px;
}
.spp-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5em;
}
.spp-info-wrap .spp-info-table {
    border: none;
    border-radius: 0;
    margin-top: 0;
}
.spp-info-table th,
.spp-info-table td {
    padding: 4px 10px !important;
    vertical-align: top;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}
.spp-info-table tr:last-child th,
.spp-info-table tr:last-child td { border-bottom: none !important; }
.spp-info-table th {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    width: 30%;
    text-align: left;
}
.spp-info-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0 !important;
    width: auto;
}
/* Date column stays narrow, other columns share remaining space */
.spp-color-changes .spp-info-table th:first-child,
.spp-color-changes .spp-info-table td:first-child { width: 1%; white-space: nowrap; }

/* Compat: old .table class on edit page */
.spp-form-wrapper .table th,
.spp-form-wrapper .table td {
    padding: 4px 8px;
    font-size: 13px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
}
.spp-form-wrapper .table th {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    width: 30%;
    background: none;
}

.spp-form-actions {
    margin-top: 1em;
}

.spp-notice {
    padding: 10px 15px;
    margin-bottom: 1em;
    border-left-width: 4px;
    border-left-style: solid;
}

.spp-notice-success {
    background-color: #f0fff4;
    border-color: #28a745;
}

.spp-notice-error {
    background-color: #fff5f5;
    border-color: #dc3545;
}

/* Printsize calculator */
.spp-printsize-calc {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 0.5em;
    font-size: 13px;
}

.spp-printsize-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.4;
}

.spp-printsize-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.spp-printsize-fields label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 3px;
}

.spp-unit { color: #0ea5e9; font-weight: 700; }

.spp-printsize-fields input {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #334155;
}

.spp-printsize-fields input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.spp-printsize-error {
    display: none;
    font-size: 12px;
    color: #dc2626;
    margin-left: 8px;
}

.spp-printsize-result {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

.spp-printsize-result p { margin: 2px 0; }
.spp-printsize-result-title { font-size: 13px; font-weight: 700; margin: 0 0 4px !important; color: #334155; }

/* File Upload Styles */
.spp-files-card {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 0.5em;
}

.spp-drop-zone-wrapper {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.spp-drop-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed #cbd5e1;
    padding: 10px 14px;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.spp-drop-zone:hover,
.spp-drop-zone.dragover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.spp-drop-hint {
    font-size: 12px;
    color: #94a3b8;
}

.spp-button-upload {
    background: #fff;
    color: #64748b !important;
    border-color: #e2e8f0;
}
.spp-button-upload:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff !important;
}

.spp-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.spp-progress-fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0%, 100% {
        width: 30%;
    }
    50% {
        width: 70%;
    }
}

.spp-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 6px;
    font-size: 13px;
}

.spp-file-icon {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.spp-file-name {
    flex: 1;
    color: #334155;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spp-no-files {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

@media screen and (max-width: 782px) {
    .spp-entries-table thead {
        display: none;
    }

    .spp-entries-table, .spp-entries-table tbody, .spp-entries-table tr, .spp-entries-table td {
        display: block;
        width: 100%;
    }

    .spp-entries-table tr {
        margin-bottom: 15px;
    }

    .spp-entries-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .spp-entries-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .spp-file-item {
        flex-direction: column;
        align-items: stretch;
    }

    .spp-file-name {
        margin-bottom: 10px;
        text-align: center;
    }

    .spp-button-small {
        margin: 2px;
    }
}
.mark-read-btn {
    transition: opacity 0.3s ease;
}

.mark-read-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mark-read-btn:hover:not(:disabled) {
    text-decoration: underline !important;
}

.message-status-fade {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.bednl-nav-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    background: #fff;
    margin-bottom: 24px;
}

.bednl-nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    margin-right: 4px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color .15s;
}
.bednl-nav-search:focus-within {
    border-color: #0ea5e9;
    background: #fff;
}

.bednl-nav-search-input {
    width: 110px !important;
    padding: 3px 6px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #334155 !important;
    transition: width .2s;
}
.bednl-nav-search-input:focus,
.bednl-nav-search-input.bednl-nav-active {
    outline: none !important;
    width: 160px !important;
}

.bednl-nav-search-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #64748b;
    cursor: pointer;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1;
}
.bednl-nav-search-btn:hover { color: #0ea5e9; }

.bednl-nav-item {
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.ast-single-post .entry-content  a.bednl-nav-item {
    text-decoration: none;
}


.bednl-nav-item:hover {
    color: #0ea5e9;
}

.bednl-nav-item.bednl-nav-active {
    color: #0369a1;
    border-bottom-color: #0ea5e9;
    font-weight: 600;
}

/* Chat messages */
.spp-chat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.5em;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

.spp-msg {
    width: 88%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 10px;
    font-size: 13px;
}

.spp-msg--biz {
    align-self: flex-end;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.spp-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.spp-msg-sender {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.spp-msg--biz .spp-msg-sender { color: #1e40af; }

.spp-msg-date {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
    white-space: nowrap;
}

.spp-msg-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.spp-msg-badge {
    font-size: 11px;
    font-weight: 700;
    background: #16a34a;
    color: #fff;
    padding: 1px 7px;
    border-radius: 20px;
}

.spp-msg-markread {
    font-size: 11px;
    color: #0ea5e9;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.spp-msg-body {
    color: #334155;
    line-height: 1.5;
}

.spp-chat-compose {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.spp-chat-compose textarea {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    resize: none;
    line-height: 1.5;
    color: #334155;
    background: #fff;
    font-family: inherit;
}
.spp-chat-compose textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

/* Color changes section */
.spp-color-changes {
    margin-top: 0.5em;
}
.spp-color-download {
    font-size: 12px;
    color: #0ea5e9;
    text-decoration: none;
    margin-left: 6px;
}
.spp-color-download:hover { text-decoration: underline; }