/* Phoenix Manager 2.5.2 — Abrasia Support Workspace */
html.pm-support-modern body{background:#f5f7fb}
html.pm-support-modern .main-content{min-height:70vh}
html.pm-support-modern .as-support-page-head,
html.pm-support-modern .as-ticket-topbar,
html.pm-support-modern .as-department-section,
html.pm-support-modern .as-ticket-form-card,
html.pm-support-modern .as-ticket-conversation,
html.pm-support-modern .as-ticket-composer,
html.pm-support-modern .as-support-success{max-width:1180px;margin-left:auto;margin-right:auto;box-sizing:border-box}

html.pm-support-modern .as-support-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-top:28px;margin-bottom:20px;padding:0 6px}
html.pm-support-modern .as-support-page-head h1{margin:6px 0 0;color:#15233e;font-size:30px;line-height:1.45;font-weight:700}
html.pm-support-modern .as-support-kicker{display:inline-flex;align-items:center;gap:7px;color:#3157ce;font-size:12px;font-weight:600}
html.pm-support-modern .as-support-back{display:inline-flex;align-items:center;gap:7px;color:#687792;text-decoration:none!important;font-size:12px;font-weight:500}
html.pm-support-modern .as-support-back:hover{color:#254bc0}

html.pm-support-modern .as-support-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:13px;border:1px solid transparent;text-decoration:none!important;font-size:13px;font-weight:600;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
html.pm-support-modern .as-support-btn-primary{background:#244dd0;color:#fff!important;box-shadow:0 10px 22px rgba(36,77,208,.16)}
html.pm-support-modern .as-support-btn-primary:hover{background:#1f44ba;transform:translateY(-1px)}
html.pm-support-modern .as-support-btn-light{background:#fff;color:#33435f!important;border-color:#dce4ef}
html.pm-support-modern .as-support-btn-light:hover{background:#f8faff}

/* ticket list */
html.pm-support-modern .as-ticket-list{max-width:1180px;margin:0 auto 36px;display:grid;gap:10px}
html.pm-support-modern .as-ticket-list-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto 18px;align-items:center;gap:15px;background:#fff;border:1px solid #e2e8f1;border-radius:17px;padding:15px 17px;text-decoration:none!important;box-shadow:0 4px 15px rgba(24,43,79,.035);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
html.pm-support-modern .as-ticket-list-item:hover{border-color:#c7d5f5;box-shadow:0 10px 28px rgba(24,43,79,.08);transform:translateY(-1px)}
html.pm-support-modern .as-ticket-list-item.is-unread{border-right:3px solid #2d5adc}
html.pm-support-modern .as-ticket-list-icon{width:46px;height:46px;border-radius:14px;background:#edf2ff;color:#3157ce;display:flex;align-items:center;justify-content:center;font-size:17px}
html.pm-support-modern .as-ticket-list-main{min-width:0}
html.pm-support-modern .as-ticket-list-top{display:flex;align-items:center;gap:9px;min-width:0}
html.pm-support-modern .as-ticket-list-top strong{color:#1e2c47;font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.pm-support-modern .as-ticket-list-number{color:#8c98aa;font-size:10px;white-space:nowrap}
html.pm-support-modern .as-ticket-list-meta{display:flex;align-items:center;gap:16px;margin-top:6px;color:#8793a6;font-size:10px}
html.pm-support-modern .as-ticket-list-meta span{display:inline-flex;align-items:center;gap:5px}
html.pm-support-modern .as-ticket-list-status{border-radius:999px!important;padding:6px 10px!important;font-size:10px!important;font-weight:600!important;white-space:nowrap}
html.pm-support-modern .as-ticket-list-arrow{color:#a7b1c1;font-size:10px}

/* department selector */
html.pm-support-modern .as-department-section{background:#fff;border:1px solid #e2e8f1;border-radius:22px;padding:24px;margin-bottom:36px;box-shadow:0 9px 28px rgba(24,43,79,.05)}
html.pm-support-modern .as-department-section>h2{font-size:17px;color:#22304a;font-weight:700;margin:0 0 17px}
html.pm-support-modern .as-department-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.pm-support-modern .as-department-card{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:13px;padding:15px;border:1px solid #e2e8f1;border-radius:16px;background:#fbfcff;text-decoration:none!important;transition:background .15s ease,border-color .15s ease,transform .15s ease}
html.pm-support-modern .as-department-card:hover{background:#f4f7ff;border-color:#c9d6f6;transform:translateY(-1px)}
html.pm-support-modern .as-department-icon{width:48px;height:48px;border-radius:14px;background:#eaf0ff;color:#2e55c9;display:flex;align-items:center;justify-content:center}
html.pm-support-modern .as-department-copy{min-width:0}
html.pm-support-modern .as-department-copy b{display:block;color:#24324d;font-size:13px;font-weight:650}
html.pm-support-modern .as-department-copy small{display:block;color:#8490a3;font-size:10px;line-height:1.7;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.pm-support-modern .as-department-arrow{color:#a8b2c2;font-size:10px}

/* new ticket form */
html.pm-support-modern .as-ticket-form-card{background:#fff;border:1px solid #e2e8f1;border-radius:22px;margin-bottom:36px;box-shadow:0 9px 28px rgba(24,43,79,.05);overflow:hidden}
html.pm-support-modern .as-ticket-form-section{padding:23px 25px;border-bottom:1px solid #edf1f6}
html.pm-support-modern .as-ticket-form-section:last-of-type{border-bottom:0}
html.pm-support-modern .as-ticket-section-title{display:flex;align-items:center;gap:10px;margin-bottom:17px}
html.pm-support-modern .as-ticket-section-title>span{display:flex;width:27px;height:27px;align-items:center;justify-content:center;border-radius:9px;background:#edf2ff;color:#3157ce;font-size:11px;font-weight:700}
html.pm-support-modern .as-ticket-section-title h2{margin:0;color:#24324d;font-size:15px;font-weight:700}
html.pm-support-modern .as-ticket-form-grid{display:grid;gap:14px}
html.pm-support-modern .as-ticket-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
html.pm-support-modern .as-ticket-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
html.pm-support-modern .as-ticket-new-form .form-group{margin-bottom:0}
html.pm-support-modern .as-ticket-new-form label,
html.pm-support-modern .as-ticket-composer label{display:block;color:#526079;font-size:11px;font-weight:600;margin:0 0 7px}
html.pm-support-modern .as-ticket-new-form .form-control,
html.pm-support-modern .as-ticket-composer .form-control,
html.pm-support-modern .as-ticket-new-form .custom-file-label,
html.pm-support-modern .as-ticket-composer .custom-file-label{border:1px solid #dce4ee!important;border-radius:11px!important;background:#fbfcfe!important;box-shadow:none!important;color:#25324c!important;font-size:12px!important;min-height:44px!important}
html.pm-support-modern .as-ticket-new-form .form-control:focus,
html.pm-support-modern .as-ticket-composer .form-control:focus{background:#fff!important;border-color:#90a9eb!important;box-shadow:0 0 0 3px rgba(48,84,197,.07)!important}
html.pm-support-modern .as-ticket-new-form textarea.form-control{min-height:210px!important;padding:13px 14px!important;line-height:1.9}
html.pm-support-modern .as-ticket-attachment-block{margin-top:14px}
html.pm-support-modern .as-ticket-attachment-block>label{display:block;margin-bottom:8px;color:#526079;font-size:11px;font-weight:600}
html.pm-support-modern .as-ticket-attachment-block small,
html.pm-support-modern .as-ticket-upload-zone small{display:block;color:#98a2b2;font-size:9px;margin-top:6px}
html.pm-support-modern .as-ticket-new-form .input-group-append .btn,
html.pm-support-modern .as-ticket-composer .input-group-append .btn{min-height:44px;border-color:#dce4ee!important;background:#f4f7fb!important;color:#425273!important;border-radius:0 11px 11px 0!important}
html.pm-support-modern #customFieldsContainer{padding:0 25px}
html.pm-support-modern .as-ticket-captcha{padding:18px 25px 0;text-align:center}
html.pm-support-modern .as-ticket-submit-row{display:flex;justify-content:flex-start;gap:10px;padding:20px 25px 24px;flex-wrap:wrap}

/* ticket workspace */
html.pm-support-modern .as-ticket-page{padding-top:26px;padding-bottom:42px}
html.pm-support-modern .as-ticket-topbar{background:#fff;border:1px solid #e1e7f0;border-radius:20px;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:0 8px 24px rgba(24,43,79,.045);margin-bottom:14px}
html.pm-support-modern .as-ticket-topbar-main{display:flex;align-items:center;gap:18px;min-width:0}
html.pm-support-modern .as-ticket-back{width:40px;height:40px;border-radius:12px;background:#f4f6fa;color:#65738c;display:flex;align-items:center;justify-content:center;text-decoration:none!important;flex:0 0 40px}
html.pm-support-modern .as-ticket-back span{display:none}
html.pm-support-modern .as-ticket-heading{min-width:0}
html.pm-support-modern .as-ticket-eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:5px}
html.pm-support-modern .as-ticket-id{color:#8b96a8;font-size:10px;font-weight:600}
html.pm-support-modern .as-ticket-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:650}
html.pm-support-modern .as-ticket-status.is-open{background:#e9f9f3;color:#177a5a}
html.pm-support-modern .as-ticket-status.is-closed{background:#fff0f2;color:#b8404c}
html.pm-support-modern .as-ticket-heading h1{margin:0;color:#192741;font-size:21px;line-height:1.45;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:650px}
html.pm-support-modern .as-ticket-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html.pm-support-modern .as-ticket-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 13px;border-radius:11px;border:1px solid #dce4ee;background:#fff;color:#42516d!important;text-decoration:none!important;font-size:11px;font-weight:600;cursor:pointer}
html.pm-support-modern .as-ticket-action-primary{background:#244dd0!important;color:#fff!important;border-color:#244dd0!important}
html.pm-support-modern .as-ticket-action-danger{color:#ad404b!important;background:#fff7f7;border-color:#f0d4d7}
html.pm-support-modern .as-ticket-action.is-disabled{opacity:.58;cursor:default}
html.pm-support-modern .as-ticket-workspace{max-width:1180px;margin:0 auto}
html.pm-support-modern .as-ticket-conversation{background:#fff;border:1px solid #e1e7f0;border-radius:20px;padding:22px;box-shadow:0 8px 24px rgba(24,43,79,.04);display:flex;flex-direction:column;gap:16px}
html.pm-support-modern .as-ticket-message{display:flex;align-items:flex-start;gap:11px;max-width:91%}
html.pm-support-modern .as-ticket-message.is-client{align-self:flex-start}
html.pm-support-modern .as-ticket-message.is-staff{align-self:flex-end;flex-direction:row-reverse}
html.pm-support-modern .as-ticket-message-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eef2f7;color:#66758e;font-size:13px}
html.pm-support-modern .as-ticket-message.is-staff .as-ticket-message-avatar{background:#eaf0ff;color:#3157ce}
html.pm-support-modern .as-ticket-message-card{min-width:220px;max-width:780px;border:1px solid #e1e7ef;border-radius:16px;background:#fbfcfe;overflow:hidden}
html.pm-support-modern .as-ticket-message.is-staff .as-ticket-message-card{background:#f4f7ff;border-color:#d8e2fa}
html.pm-support-modern .as-ticket-message-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 13px;border-bottom:1px solid rgba(222,229,239,.8)}
html.pm-support-modern .as-ticket-author{display:flex;align-items:center;gap:7px;min-width:0}
html.pm-support-modern .as-ticket-author strong{color:#283650;font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.pm-support-modern .as-ticket-author span{font-size:8px;color:#7d899c;background:#edf1f6;padding:3px 6px;border-radius:999px}
html.pm-support-modern .as-ticket-message.is-staff .as-ticket-author span{background:#e3ebff;color:#3157ce}
html.pm-support-modern .as-ticket-message-head time{font-size:9px;color:#9aa4b3;white-space:nowrap}
html.pm-support-modern .as-ticket-message-body{padding:14px 15px;color:#32405a;font-size:12px;line-height:2;overflow-wrap:anywhere}
html.pm-support-modern .as-ticket-message-body p:last-child{margin-bottom:0}
html.pm-support-modern .as-ticket-attachments{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 13px}
html.pm-support-modern .as-ticket-file{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:7px 9px;border-radius:9px;background:#fff;border:1px solid #e0e7f0;color:#465773!important;text-decoration:none!important;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.pm-support-modern .as-ticket-file.is-removed{opacity:.55}
html.pm-support-modern .as-ticket-rating{padding:0 14px 12px}

/* reply composer */
html.pm-support-modern .as-ticket-composer{margin-top:14px;background:#fff;border:1px solid #dce4ee;border-radius:20px;padding:21px 22px;box-shadow:0 8px 24px rgba(24,43,79,.045)}
html.pm-support-modern .as-ticket-composer-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}
html.pm-support-modern .as-ticket-composer-icon{width:36px;height:36px;border-radius:11px;background:#edf2ff;color:#3157ce;display:flex;align-items:center;justify-content:center}
html.pm-support-modern .as-ticket-composer-head h2{margin:0;color:#22304a;font-size:16px;font-weight:700}
html.pm-support-modern .as-ticket-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.pm-support-modern .as-ticket-message-field{margin-bottom:13px!important}
html.pm-support-modern .as-ticket-composer textarea.form-control{min-height:170px!important;padding:13px 14px!important;line-height:1.9}
html.pm-support-modern .as-ticket-composer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px}
html.pm-support-modern .as-ticket-upload-zone{min-width:0;max-width:620px}
html.pm-support-modern .as-ticket-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:155px;height:46px;border:0;border-radius:12px;background:#244dd0;color:#fff;font-size:12px;font-weight:650;box-shadow:0 10px 20px rgba(36,77,208,.15);cursor:pointer}
html.pm-support-modern .as-ticket-send:hover{background:#2045bb}

/* empty + success */
html.pm-support-modern .as-support-empty,
html.pm-support-modern .as-support-success{background:#fff;border:1px solid #e2e8f1;border-radius:22px;padding:42px 24px;text-align:center;box-shadow:0 9px 28px rgba(24,43,79,.05);margin-bottom:36px}
html.pm-support-modern .as-support-empty-icon,
html.pm-support-modern .as-success-icon{width:62px;height:62px;margin:0 auto 14px;border-radius:20px;background:#edf2ff;color:#3157ce;display:flex;align-items:center;justify-content:center;font-size:23px}
html.pm-support-modern .as-success-icon{background:#e9f9f3;color:#19825e}
html.pm-support-modern .as-support-empty h2,
html.pm-support-modern .as-support-success h1{margin:0 0 14px;color:#22304a;font-size:22px;font-weight:700}
html.pm-support-modern .as-ticket-number-big{display:inline-flex;margin:0 0 18px;padding:7px 12px;border-radius:10px;background:#f1f4fa;color:#435474!important;text-decoration:none!important;font-size:12px;font-weight:700}
html.pm-support-modern .as-center-actions{justify-content:center;padding:0}

@media(max-width:900px){
 html.pm-support-modern .as-support-page-head,html.pm-support-modern .as-ticket-topbar{margin-left:12px;margin-right:12px}
 html.pm-support-modern .as-ticket-list,html.pm-support-modern .as-department-section,html.pm-support-modern .as-ticket-form-card,html.pm-support-modern .as-ticket-workspace,html.pm-support-modern .as-support-success,html.pm-support-modern .as-support-empty{margin-left:12px;margin-right:12px}
 html.pm-support-modern .as-ticket-topbar{align-items:flex-start;flex-direction:column}
 html.pm-support-modern .as-ticket-top-actions{width:100%}
 html.pm-support-modern .as-ticket-action{flex:1 1 auto}
 html.pm-support-modern .as-ticket-heading h1{max-width:100%}
 html.pm-support-modern .as-ticket-form-grid.three{grid-template-columns:1fr}
 html.pm-support-modern .as-ticket-message{max-width:97%}
}
@media(max-width:680px){
 html.pm-support-modern .as-support-page-head{align-items:flex-start;flex-direction:column;margin-top:20px}
 html.pm-support-modern .as-support-page-head h1{font-size:24px}
 html.pm-support-modern .as-support-page-head .as-support-btn{width:100%}
 html.pm-support-modern .as-department-grid{grid-template-columns:1fr}
 html.pm-support-modern .as-ticket-form-grid.two,html.pm-support-modern .as-ticket-form-grid{grid-template-columns:1fr}
 html.pm-support-modern .as-ticket-form-section{padding:18px}
 html.pm-support-modern #customFieldsContainer{padding:0 18px}
 html.pm-support-modern .as-ticket-captcha{padding-left:18px;padding-right:18px}
 html.pm-support-modern .as-ticket-submit-row{padding:18px;display:grid;grid-template-columns:1fr}
 html.pm-support-modern .as-ticket-list-item{grid-template-columns:40px minmax(0,1fr) 16px;padding:13px}
 html.pm-support-modern .as-ticket-list-icon{width:40px;height:40px;border-radius:12px}
 html.pm-support-modern .as-ticket-list-status{grid-column:2;justify-self:start;margin-top:4px}
 html.pm-support-modern .as-ticket-list-arrow{grid-column:3;grid-row:1/3}
 html.pm-support-modern .as-ticket-list-meta{gap:10px;flex-wrap:wrap}
 html.pm-support-modern .as-ticket-topbar{padding:16px}
 html.pm-support-modern .as-ticket-topbar-main{align-items:flex-start;gap:12px;width:100%}
 html.pm-support-modern .as-ticket-heading h1{font-size:18px;white-space:normal}
 html.pm-support-modern .as-ticket-top-actions{display:grid;grid-template-columns:1fr 1fr}
 html.pm-support-modern .as-ticket-action-danger{grid-column:1/-1}
 html.pm-support-modern .as-ticket-conversation{padding:13px;border-radius:16px}
 html.pm-support-modern .as-ticket-message{max-width:100%;gap:7px}
 html.pm-support-modern .as-ticket-message-avatar{width:32px;height:32px;flex-basis:32px;border-radius:10px;font-size:11px}
 html.pm-support-modern .as-ticket-message-card{min-width:0;max-width:calc(100vw - 92px)}
 html.pm-support-modern .as-ticket-message-head{align-items:flex-start;flex-direction:column;gap:3px}
 html.pm-support-modern .as-ticket-composer{padding:16px;border-radius:16px}
 html.pm-support-modern .as-ticket-composer-bottom{grid-template-columns:1fr}
 html.pm-support-modern .as-ticket-send{width:100%}
}
