.pa-theme .pa-dashboard-panels { container-type:inline-size; }
@media(min-width:801px) { .pa-theme .pa-dashboard-stats .tile { flex-grow:1; } }
.pa-theme .pa-notification-preferences { margin-bottom:14px; }
.pa-theme .pa-notification-trigger { display:flex; align-items:center; width:100%; gap:12px; padding:14px 18px; border:1px solid var(--pa-border); border-radius:16px; background:var(--pa-surface); color:var(--pa-primary); text-align:start; box-shadow:none; }
.pa-theme .pa-notification-trigger:hover, .pa-theme .pa-notification-trigger:focus-visible { border-color:var(--brand-blue); background:var(--brand-blue-soft); color:var(--pa-primary); }
.pa-theme .pa-notification-trigger-icon { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:12px; background:var(--brand-blue-soft); color:var(--brand-blue); font-size:18px; }
.pa-theme .pa-notification-trigger > span:nth-child(2) { display:flex; flex:1; min-width:0; flex-direction:column; gap:2px; }
.pa-theme .pa-notification-trigger strong { font-size:14px; line-height:1.7; }
.pa-theme .pa-notification-trigger small { color:var(--pa-muted); font-size:11px; line-height:1.7; }
.pa-theme .pa-notification-chevron { flex:none; color:var(--pa-muted); transition:transform .2s ease; }
.pa-theme .pa-notification-trigger .pa-notification-chevron { margin-inline-start:auto; }
.pa-theme .pa-notification-panel { margin-top:10px; padding:22px; border:1px solid var(--pa-border); border-radius:18px; background:var(--pa-surface); }
.pa-theme .pa-notification-panel[hidden] { display:none !important; }
.pa-theme .pa-notification-page-panel { margin-top:0; }
.pa-theme .pa-notification-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.pa-theme .pa-notification-heading :is(h1,h2) { margin:0 0 4px; color:var(--pa-primary); font-size:17px; line-height:1.8; }
.pa-theme .pa-notification-heading p { margin:0; color:var(--pa-muted); font-size:12px; line-height:1.8; }
.pa-theme .pa-notification-default { flex:none; padding:7px 10px; border-radius:9px; background:var(--brand-blue-soft); color:var(--brand-blue); font-size:11px; line-height:1.7; }
.pa-theme .pa-notification-sms-destinations { display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:12px 14px; border:1px solid var(--pa-border); border-radius:14px; background:var(--brand-blue-soft); }
.pa-theme .pa-notification-sms-title { display:inline-flex; align-items:center; gap:7px; flex:none; color:var(--brand-blue); font-size:11px; font-weight:700; line-height:1.7; }
.pa-theme .pa-notification-sms-list { display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.pa-theme .pa-notification-sms-box { display:flex; align-items:center; gap:8px; min-height:34px; padding:6px 10px; border:1px solid var(--pa-border); border-radius:9px; background:var(--pa-surface); }
.pa-theme .pa-notification-sms-box small { color:var(--pa-muted); font-size:10px; }
.pa-theme .pa-notification-sms-box strong { color:var(--pa-primary); font-size:12px; letter-spacing:.02em; }
.pa-theme .pa-notification-sms-box .pa-notification-sms-missing { color:#b45309; font-size:10px; font-weight:600; }
.pa-theme .pa-notification-bulk { margin-bottom:18px; padding:14px; border:1px solid var(--pa-border); border-radius:14px; background:var(--pa-subtle); }
.pa-theme .pa-notification-bulk h2 { margin:0 0 10px; color:var(--pa-primary); font-size:13px; line-height:1.8; }
.pa-theme .pa-notification-bulk-groups { display:flex; flex-wrap:wrap; gap:9px; }
.pa-theme .pa-notification-bulk-group { display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid var(--pa-border); border-radius:10px; background:var(--pa-surface); }
.pa-theme .pa-notification-bulk-group strong { color:var(--pa-primary); font-size:11px; line-height:1.7; }
.pa-theme .pa-notification-bulk-buttons { display:flex; gap:5px; }
.pa-theme .pa-notification-bulk-buttons .btn { min-height:28px; padding:4px 8px; border:1px solid var(--pa-border); border-radius:7px; background:var(--pa-surface); color:var(--pa-muted); font-size:10px; line-height:1.6; }
.pa-theme .pa-notification-bulk-buttons .btn:hover, .pa-theme .pa-notification-bulk-buttons .btn:focus-visible { border-color:var(--brand-blue); color:var(--brand-blue); }
.pa-theme .pa-notification-matrix-scroll { max-width:100%; overflow-x:auto; border-radius:14px; scrollbar-width:thin; }
.pa-theme .pa-notification-list-head { display:grid; grid-template-columns:minmax(230px,1fr) repeat(var(--pa-provider-count),minmax(110px,.55fr)); align-items:center; min-width:var(--pa-notification-min-width); padding:10px 16px; border:1px solid var(--pa-border); border-bottom:0; border-radius:14px 14px 0 0; background:var(--pa-subtle); color:var(--pa-muted); font-size:11px; font-weight:700; }
.pa-theme .pa-notification-list-head > :not(:first-child) { padding-inline:8px; text-align:center; overflow-wrap:anywhere; }
.pa-theme .pa-notification-events { overflow:hidden; border:1px solid var(--pa-border); border-radius:0 0 14px 14px; }
.pa-theme .pa-notification-event { display:grid; grid-template-columns:minmax(230px,1fr) repeat(var(--pa-provider-count),minmax(110px,.55fr)); align-items:center; min-width:var(--pa-notification-min-width); margin:0; padding:15px 16px; border-bottom:1px solid var(--pa-border); background:var(--pa-surface); }
.pa-theme .pa-notification-event:last-child { border-bottom:0; }
.pa-theme .pa-notification-event-meta { display:flex; min-width:0; flex-direction:column; gap:3px; }
.pa-theme .pa-notification-event-meta strong { color:var(--pa-primary); font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.pa-theme .pa-notification-event-meta span { color:var(--pa-muted); font-size:10px; line-height:1.7; }
.pa-theme .pa-notification-provider-cell { display:grid; place-items:center; min-width:0; padding-inline:8px; }
.pa-theme .pa-notification-switch-only { display:inline-flex; margin:0; cursor:pointer; }
.pa-theme .pa-notification-switch-only input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.pa-theme .pa-notification-switch-only input:checked + .pa-notification-switch { background:var(--brand-blue); }
.pa-theme .pa-notification-switch-only input:checked + .pa-notification-switch > span { transform:translateX(18px); }
[dir="rtl"] .pa-theme .pa-notification-switch-only input:checked + .pa-notification-switch > span { transform:translateX(-18px); }
.pa-theme .pa-notification-switch-only input:focus-visible + .pa-notification-switch { outline:3px solid rgba(8,100,220,.28); outline-offset:2px; }
.pa-theme .pa-notification-unavailable { color:var(--pa-border); font-size:16px; }
.pa-theme .pa-notification-switch { position:relative; flex:0 0 42px; width:42px; height:24px; border-radius:999px; background:#aeb7c4; transition:background .2s ease; }
.pa-theme .pa-notification-switch > span { position:absolute; top:3px; inset-inline-start:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.2); transition:transform .2s ease; }
.pa-theme .pa-notification-actions { display:flex; justify-content:flex-end; margin-top:18px; padding-top:16px; border-top:1px solid var(--pa-border); }
.pa-theme .pa-notification-actions .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; border-radius:11px; }
.pa-theme .pa-notification-empty { display:grid; place-items:center; gap:10px; min-height:180px; padding:24px; border:1px dashed var(--pa-border); border-radius:14px; color:var(--pa-muted); text-align:center; }
.pa-theme .pa-notification-empty i { color:var(--brand-blue); font-size:30px; }
.pa-theme .pa-notification-empty p { margin:0; }
.pa-theme .pa-dashboard-credit { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:24px; padding:22px 24px; border:1px solid var(--pa-border); border-radius:18px; background:var(--pa-surface); color:var(--pa-primary); }
.pa-theme .pa-credit-balance { display:flex; align-items:center; gap:14px; flex:1 1 260px; min-width:0; max-width:100%; }
.pa-theme .pa-credit-balance > div { flex:1; min-width:0; }
.pa-theme .pa-credit-icon { display:grid; place-items:center; flex:0 0 48px; height:48px; border-radius:14px; background:var(--brand-blue-soft); color:var(--brand-blue); font-size:23px; }
.pa-theme .pa-credit-balance h2 { margin:0 0 6px; font-size:13px; line-height:1.7; color:var(--pa-muted); }
.pa-theme .pa-credit-amount { display:block; max-width:100%; padding-inline:2px; font-size:clamp(18px,4vw,24px); line-height:1.8; overflow:visible; overflow-wrap:anywhere; }
.pa-theme .pa-credit-amount > bdi { display:inline-block; max-width:100%; white-space:normal; }
.pa-theme .pa-credit-amount.pa-credit-fitted { font-size:var(--pa-credit-size); }
.pa-theme .pa-credit-amount.pa-credit-fitted > bdi { white-space:nowrap; }
.pa-theme .pa-credit-funding { padding-inline-start:22px; border-inline-start:1px solid var(--pa-border); }
.pa-theme .pa-credit-funding .pa-credit-add { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:11px 18px; border-radius:12px; color:#fff; background:var(--brand-blue); border-color:var(--brand-blue); white-space:normal; }
.pa-theme .pa-credit-funding .pa-credit-add:hover { background:var(--brand-blue-hover); border-color:var(--brand-blue-hover); }
@media(max-width:600px) {
 .pa-theme .pa-notification-panel { padding:16px; }
 .pa-theme .pa-notification-heading { flex-direction:column; }
 .pa-theme .pa-notification-default { width:100%; }
 .pa-theme .pa-notification-sms-destinations { align-items:flex-start; flex-direction:column; }
 .pa-theme .pa-notification-sms-list,.pa-theme .pa-notification-sms-box { width:100%; }
 .pa-theme .pa-notification-sms-box { justify-content:space-between; }
 .pa-theme .pa-notification-bulk-group { width:100%; justify-content:space-between; }
 .pa-theme .pa-notification-list-head { grid-template-columns:minmax(200px,1fr) repeat(var(--pa-provider-count),minmax(100px,.55fr)); }
 .pa-theme .pa-notification-event { grid-template-columns:minmax(200px,1fr) repeat(var(--pa-provider-count),minmax(100px,.55fr)); padding-block:13px; }
 .pa-theme .pa-notification-actions .btn { width:100%; }
 .pa-theme .pa-dashboard-credit { padding:20px; gap:16px; }
 .pa-theme .pa-credit-funding { width:100%; padding:16px 0 0; border-inline-start:0; border-top:1px solid var(--pa-border); }
 .pa-theme .pa-credit-funding .pa-credit-add { width:100%; }
}
.pa-theme .pa-dashboard-panel-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:stretch; }
.pa-theme .pa-dashboard-panel-grid>.pa-dashboard-panel { display:flex; flex-direction:column; min-width:0; margin:0; border-radius:18px; overflow:hidden; background:var(--pa-surface); }
.pa-theme .pa-dashboard-panel-grid .panel-heading { padding:18px; }
.pa-theme .pa-dashboard-panel-grid .panel-title { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; line-height:1.7; }
.pa-theme .pa-dashboard-panel-grid .panel-title>.pull-right { float:none !important; order:1; width:100%; }
.pa-theme .pa-dashboard-panel-grid .panel-heading .btn { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:7px 12px; font-size:12px; font-weight:600; color:#fff !important; background:var(--brand-blue,#0864dc) !important; border:1px solid var(--brand-blue,#0864dc); border-radius:10px; opacity:1; text-shadow:none; }
.pa-theme .pa-dashboard-panel-grid .panel-heading .btn:is(:hover,:focus-visible) { background:var(--brand-blue-hover,#064eaf) !important; border-color:var(--brand-blue-hover,#064eaf); }
.pa-theme .pa-dashboard-panel-grid .panel-heading .btn :is(i,span) { color:inherit !important; }
.pa-theme .pa-dashboard-panel-grid .panel-body { background:var(--pa-surface); font-size:13px; line-height:1.9; overflow-wrap:anywhere; }
.pa-theme .pa-dashboard-panel-grid>.pa-dashboard-panel>.list-group { max-height:300px; overflow-y:auto; }
.pa-theme .pa-dashboard-panel-grid .div-service-item { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:4px 8px; padding:8px 10px; margin:0; border-bottom:1px solid var(--pa-border); border-radius:0; }
.pa-theme .pa-dashboard-panel-grid .div-service-item:last-child { border-bottom:0; }
.pa-theme .pa-dashboard-panel-grid .div-service-name { grid-column:1/-1; grid-row:1; margin:0; min-width:0; line-height:1.5; font-size:12px; }
.pa-theme .pa-dashboard-panel-grid .div-service-status { grid-column:1; grid-row:2; min-width:0; text-align:start; }
.pa-theme .pa-dashboard-panel-grid .div-service-status .label:not(.label-placeholder) { width:auto; max-width:100%; box-sizing:border-box; padding:4px 8px; font-size:11px; }
.pa-theme .pa-dashboard-panel-grid .div-service-buttons { grid-column:2; grid-row:2; display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:4px; min-width:0; margin:0; }
.pa-theme .pa-dashboard-panel-grid .div-service-buttons .btn-view-details { display:inline-flex; align-items:center; justify-content:center; gap:5px; max-width:100%; min-height:30px; padding:4px 7px; font-size:11px; white-space:normal; }
.pa-theme .pa-dashboard-panel-grid .div-service-buttons .btn-view-details span:not(.sr-only) { display:inline; }
.pa-theme .pa-dashboard-panel-grid .div-service-buttons .btn-view-details .sr-only { display:none; }
.pa-theme .pa-dashboard-panel-grid .panel-footer { margin-top:auto; }
.pa-theme .pa-dashboard-news { margin-top:32px; }
.pa-theme .pa-dashboard-activity-list { max-height:340px; overflow-y:auto; padding:0 16px; }
.pa-theme .pa-dashboard-activity-item { display:flex; flex-direction:column; gap:10px; padding:16px 0; border-bottom:1px solid var(--pa-border); color:var(--pa-primary); text-decoration:none; }
.pa-theme .pa-dashboard-activity-item:last-child { border-bottom:0; }
.pa-theme .pa-dashboard-activity-item:hover { color:var(--pa-link); }
.pa-theme .pa-activity-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:13px; line-height:1.7; }
.pa-theme .pa-activity-heading>strong { min-width:0; overflow-wrap:anywhere; }
.pa-theme .pa-activity-badge { display:inline-block; flex:none; border-radius:7px; padding:3px 8px; font-size:11px; line-height:1.8; }
.pa-theme .pa-activity-unpaid { color:#963d12; background:#fff0de; }
.pa-theme .pa-activity-open { color:#0752b2; background:#e4efff; }
.pa-theme .pa-activity-answered { color:#226213; background:#e5f5dc; }
.pa-theme .pa-activity-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; color:var(--pa-muted); font-size:11px; line-height:1.8; }
.pa-theme .pa-dashboard-activity-empty { padding:24px 0; color:var(--pa-muted); text-align:center; }
@container(max-width:760px) { .pa-theme .pa-dashboard-panel-grid { grid-template-columns:minmax(0,1fr); } }
