.pstm-portal{max-width:900px;margin:40px auto;font-family:system-ui,-apple-system,sans-serif;color:#172033}.pstm-portal *{box-sizing:border-box}.pstm-portal-head{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #e2e8f0;padding-bottom:20px}.pstm-portal-head h2{margin:4px 0}.pstm-badge,.pstm-priority{display:inline-block;border-radius:999px;padding:7px 12px;background:#e0e7ff;margin:3px}.pstm-priority.urgent{background:#ffe4e6;color:#be123c}.pstm-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pstm-meta div{padding:12px;background:#f8fafc;border-radius:10px}.pstm-meta dt{font-size:12px;color:#64748b}.pstm-meta dd{margin:4px 0}.pstm-conversation{display:flex;flex-direction:column;gap:14px;margin:24px 0}.pstm-conversation article{max-width:85%;padding:16px;border-radius:14px;background:#f1f5f9}.pstm-conversation article.agent{align-self:flex-end;background:#dbeafe}.pstm-conversation header{display:flex;justify-content:space-between;gap:20px}.pstm-conversation time{font-size:12px;color:#64748b}.pstm-attachment{display:block;margin-top:8px}.pstm-portal-reply,.pstm-lookup{padding:20px;border:1px solid #e2e8f0;border-radius:14px}.pstm-portal label{display:block;margin:12px 0;font-weight:600}.pstm-portal input,.pstm-portal textarea{width:100%;margin-top:6px;padding:12px;border:1px solid #cbd5e1;border-radius:8px}.pstm-portal button{background:#2563eb;color:#fff;border:0;padding:12px 18px;border-radius:8px;font-weight:700;cursor:pointer}.pstm-close{margin-top:14px!important;background:#fff!important;color:#475569!important;border:1px solid #cbd5e1!important}.pstm-alert{padding:14px;background:#fff1f2;border-radius:8px}.pstm-alert.success{background:#ecfdf5}@media(max-width:640px){.pstm-portal{margin:20px 12px}.pstm-meta{grid-template-columns:1fr}.pstm-portal-head{align-items:flex-start;flex-direction:column}.pstm-conversation article{max-width:95%}}
.pstm-history-search{margin:20px 0;padding:18px;border:1px solid #dbe5f0;border-radius:14px;background:#f8fafc}.pstm-history-search>label{margin-top:0}.pstm-history-search>div{display:flex;gap:10px}.pstm-history-search input{margin:0;flex:1}.pstm-history-search button{white-space:nowrap}.pstm-history-search .pstm-search-count{margin:8px 0 0;color:#64748b;font-size:13px}.pstm-after-resolution{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.pstm-reopen,.pstm-feedback{padding:22px;border:1px solid #dbe5f0;border-radius:14px;background:#fff;box-shadow:0 8px 25px rgba(15,23,42,.06)}.pstm-reopen h3,.pstm-feedback h3{margin-top:0}.pstm-rating,.pstm-resolved{border:0;padding:0;margin:14px 0}.pstm-rating legend,.pstm-resolved legend{font-weight:700;margin-bottom:8px}.pstm-rating{display:flex;flex-direction:row-reverse;justify-content:flex-end}.pstm-rating input{position:absolute;opacity:0;width:1px}.pstm-rating label{width:auto;margin:0;color:#cbd5e1;font-size:34px;line-height:1;cursor:pointer}.pstm-rating label:hover,.pstm-rating label:hover~label,.pstm-rating input:checked~label{color:#f59e0b}.pstm-resolved{display:flex;gap:10px;flex-wrap:wrap}.pstm-resolved legend{width:100%}.pstm-resolved label{display:inline-flex;align-items:center;gap:6px;margin:0;padding:9px 14px;border:1px solid #cbd5e1;border-radius:8px}.pstm-resolved input{width:auto;margin:0}.pstm-customer-tickets tr[hidden]{display:none}@media(max-width:720px){.pstm-after-resolution{grid-template-columns:1fr}.pstm-history-search>div{flex-direction:column}}
.pstm-rating label.is-selected{color:#f59e0b}.pstm-rating input:focus-visible+label{outline:2px solid #2563eb;outline-offset:3px;border-radius:4px}.pstm-rating-status{margin:5px 0 12px;color:#64748b;font-size:13px}
.pstm-rating{display:flex;flex-direction:row;justify-content:flex-start;gap:3px}.pstm-rating .pstm-rating-value{display:none}.pstm-rating .pstm-star-button{appearance:none;background:transparent!important;border:0!important;border-radius:5px;color:#cbd5e1!important;padding:2px!important;font-size:36px;line-height:1;box-shadow:none!important;cursor:pointer}.pstm-rating .pstm-star-button:hover,.pstm-rating .pstm-star-button.is-selected{color:#f59e0b!important}.pstm-rating .pstm-star-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.pstm-feedback-only{display:block;max-width:620px;margin-left:auto;margin-right:auto}.pstm-feedback-only .pstm-feedback{width:100%}
.pstm-status-badge{display:inline-flex;align-items:center;gap:6px;margin:3px;padding:6px 10px;border-radius:7px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:650;line-height:1.35;white-space:nowrap}.pstm-status-badge svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pstm-status-badge.status-open{background:#e8f1ff;color:#0058e8}.pstm-status-badge.status-in-progress{background:#f1e8ff;color:#6d28d9}.pstm-status-badge.status-waiting-customer{background:#fff3e0;color:#c75b00}.pstm-status-badge.status-waiting-agent{background:#e1f7f4;color:#087f72}.pstm-status-badge.status-urgent{background:#fde7e9;color:#c62828}.pstm-status-badge.status-resolved{background:#e8f5e9;color:#2e7d32}.pstm-status-badge.status-closed{background:#eceff1;color:#455a64}.pstm-priority-badge{display:inline-flex;align-items:center;margin:3px;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}.pstm-priority-badge.priority-low{background:#E8F5E9;color:#2E7D32}.pstm-priority-badge.priority-normal{background:#E0ECFD;color:#0058E8}.pstm-priority-badge.priority-high{background:#FFF3E0;color:#E65100}.pstm-priority-badge.priority-urgent{background:#FDE7E9;color:#C62828}

