/* Support uses the panel's secondary accent and flexible, non-tabular rows. */
.support-page{--sp-accent:#257b80;--sp-ink:#304c62;--sp-muted:#627b8e;min-width:0;color:var(--sp-ink)}
.support-page *{box-sizing:border-box}
.support-page .page-heading{margin-bottom:16px;gap:10px}
.support-page .page-heading h1{font-size:20px}
.support-page .page-heading p{font-size:12px;line-height:1.9}
.support-page .btn{font-size:11px;min-height:32px;padding:6px 10px;border-radius:6px;box-shadow:none;gap:5px}
.support-page .btn-primary{background:var(--sp-accent);border-color:var(--sp-accent);color:#fff}
.support-page .btn-primary:hover{background:#1d6268;border-color:#1d6268}
.support-page .btn .icon{width:14px;height:14px}
.sp-tabs{display:flex;gap:20px;border-bottom:1px solid #dce7eb;margin-bottom:16px;min-width:0}
.sp-tabs a{font-size:12px;line-height:1.8;padding:9px 0 10px;color:var(--sp-muted);border-bottom:2px solid transparent;text-decoration:none;white-space:nowrap}
.sp-tabs a[aria-current]{color:var(--sp-accent);border-color:var(--sp-accent);font-weight:700}
.sp-panel{background:#fff;border:1px solid #dce7eb;border-radius:9px;padding:16px;min-width:0}
.sp-list-heading,.sp-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;min-width:0}
.sp-list-heading h2,.sp-detail-heading h2{font-size:13px;line-height:1.9;margin:0;overflow-wrap:anywhere}
.sp-list-heading small,.sp-muted{font-size:11px;color:var(--sp-muted)}
.sp-filters{display:flex;align-items:center;gap:8px;padding-bottom:12px;border-bottom:1px solid #e7eef2;min-width:0}
.sp-search{display:flex;align-items:center;flex:1;gap:7px;min-width:0;border:1px solid #d8e6e9;border-radius:6px;background:#fff;padding:0 9px}
.sp-search>.icon{flex:none;width:15px;height:15px;color:#6c9299}
.sp-search input{border:0!important;box-shadow:none!important;outline:0;background:transparent;min-width:0;width:100%;font:inherit;font-size:12px;height:34px;padding:5px 0;color:var(--sp-ink)}
.sp-search:focus-within{border-color:var(--sp-accent);box-shadow:0 0 0 3px #257b8010}
.sp-filters>.field{margin:0;width:160px;min-width:0;flex:0 1 160px}
.sp-filters>.field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sp-filters .select-trigger{height:34px;min-height:34px;padding:5px 8px;font-size:11px;border-radius:6px;border-color:#d8e6e9;color:#456579;box-shadow:none}
.sp-filters .select-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.sp-filters .select-trigger>.icon{width:12px;height:12px;flex:none;color:#6c9299}
.sp-ticket{padding:13px 0;border-bottom:1px solid #e7eef2;min-width:0}
.sp-ticket:last-child{border-bottom:0;padding-bottom:0}
.sp-ticket-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.sp-ticket-title>a{font-size:12px;line-height:1.9;font-weight:700;color:var(--sp-ink);text-decoration:none;overflow-wrap:anywhere;min-width:0}
.sp-ticket-title>a:hover{color:var(--sp-accent)}
.sp-status{display:inline-flex;align-items:center;gap:5px;flex:none;padding:3px 7px;border-radius:5px;font-size:10px;line-height:1.8;background:#f0f4f7;color:#5e7485;white-space:nowrap}
.sp-status i{width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}
.sp-status-answered{color:#246d66;background:#edf7f3}
.sp-status-pending{color:#8a662b;background:#fbf5e9}
.sp-status-reviewing{color:#2e6998;background:#eff5fb}
.sp-ticket-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px;font-size:10px;color:var(--sp-muted);line-height:1.9;margin-top:3px;overflow-wrap:anywhere}
.sp-preview{font-size:11px;line-height:1.95;color:#4b6477;margin:8px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.sp-preview>span{color:var(--sp-muted);font-size:10px}
.sp-ticket-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.sp-ticket-foot time{font-size:10px;line-height:1.8;color:var(--sp-muted);overflow-wrap:anywhere}
.support-page .sp-view{color:var(--sp-accent);border:1px solid #d6e8e7;background:#fff;flex:none;min-height:28px;padding:3px 8px;font-size:10px}
.sp-back{display:inline-flex;align-items:center;gap:4px;color:var(--sp-accent);font-size:11px;text-decoration:none;margin-bottom:12px;min-height:28px}
.sp-back .icon{width:13px;height:13px}
.sp-detail-heading{margin-bottom:4px}
.sp-conversation{display:grid;gap:10px;margin:16px 0;padding-top:14px;border-top:1px solid #e7eef2}
.sp-message{border:1px solid #e1e9ef;border-radius:7px;padding:10px 12px;min-width:0;background:#fafcfd}
.sp-message-support{background:#f3f9f8;border-color:#d8eae7}
.sp-message header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:var(--sp-ink)}
.sp-message-support header strong{color:#226b6c}
.sp-message header time{font-size:10px;color:var(--sp-muted);font-weight:400}
.sp-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:2;margin:6px 0 0;color:#3b566b}
.support-page #ticket-reply-form{border-top:1px solid #e7eef2;padding-top:13px}
.support-page .field>span{font-size:11px;color:#456579;margin-bottom:5px}
.support-page textarea{border:1px solid #d8e6e9;border-radius:6px;font-size:12px;line-height:1.9;padding:9px 10px;min-height:88px;resize:vertical;color:var(--sp-ink);max-width:100%;width:100%}
.sp-reply-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.sp-reply-actions small{color:var(--sp-muted);font-size:10px;margin-inline-end:auto}
.sp-guides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sp-guide{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dce7eb;border-radius:8px;padding:14px;color:var(--sp-ink);text-decoration:none;min-width:0}
.sp-guide>div{flex:1;min-width:0;overflow-wrap:anywhere}
.sp-guide>.icon{width:19px;height:19px;color:var(--sp-accent);flex:none}
.sp-guide>.icon:last-child{width:13px;height:13px}
.sp-guide strong{font-size:12px}
.sp-guide p{font-size:11px;line-height:1.9;color:var(--sp-muted);margin:4px 0 0}
.sp-faq details+details{border-top:1px solid #e7eef2}
.sp-faq summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.9;font-weight:600;padding:13px 0;cursor:pointer;list-style:none}
.sp-faq summary::-webkit-details-marker{display:none}
.sp-faq summary .icon{width:13px;height:13px;color:var(--sp-accent);flex:none}
.sp-faq details[open] summary .icon{transform:rotate(180deg)}
.sp-faq p{font-size:12px;line-height:2;color:#4b6477;margin:0 0 13px;overflow-wrap:anywhere}
.support-page :is(a,button,input,textarea):focus-visible{outline:2px solid #257b80;outline-offset:3px}
@media(max-width:600px){
 .support-page .page-heading h1{font-size:18px}
 .support-page .page-heading p{font-size:11px}
 .sp-panel{padding:12px}
 .sp-tabs{gap:15px}
 .sp-tabs a{font-size:11px}
 .sp-filters{flex-wrap:wrap}
 .sp-search{flex:1 1 100%}
 .sp-search input{font-size:16px;height:36px}
 .sp-search input::placeholder{font-size:12px}
 .sp-filters>.field{flex:1 1 100%;width:100%}
 .sp-filters .select-trigger{height:34px}
 .sp-ticket-title{flex-wrap:wrap;gap:5px 8px}
 .sp-ticket-title>a{flex:1 1 170px}
 .sp-ticket-foot{align-items:flex-end}
 .sp-detail-heading{flex-wrap:wrap}
 .sp-guides{grid-template-columns:minmax(0,1fr)}
 .support-page textarea{font-size:16px}
 .sp-message{padding:9px 10px}
}
/* A dedicated ticket dialog, consistent from every panel entry point. */
.modal:has(#new-ticket-form){width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:1px solid #dce7eb;border-radius:10px;color:#304c62;overflow:hidden}
.modal:has(#new-ticket-form) .modal-header{padding:12px 15px;gap:10px;border-bottom:1px solid #e3ecef;background:#fff}
.modal:has(#new-ticket-form) .modal-header h2{font-size:14px;line-height:1.9;font-weight:600;color:#304c62}
.modal:has(#new-ticket-form) .eyebrow{font-size:9px;color:#627b8e}
.modal:has(#new-ticket-form) .modal-header>.icon-button{width:29px;height:29px;min-width:29px;border:1px solid #dce7eb;border-radius:6px;color:#627b8e}
.modal:has(#new-ticket-form) .modal-header>.icon-button .icon{width:14px;height:14px}
.modal:has(#new-ticket-form) .modal-body{padding:0;min-width:0;scrollbar-width:thin;scrollbar-color:#b1cdd0 transparent;overscroll-behavior:contain}
#new-ticket-form{min-width:0;margin:0;color:#304c62}
.ticket-create-fields{padding:14px 15px}
.ticket-create-intro{font-size:11px;line-height:1.95;color:#627b8e;margin:0 0 13px}
#new-ticket-form .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
#new-ticket-form .field{margin:0;min-width:0;gap:5px}
#new-ticket-form .field>span:not(.panel-field-error){font-size:11px;line-height:1.8;font-weight:500;color:#456579}
#new-ticket-form .field em{font-style:normal;color:#257b80;margin-inline-start:3px}
#new-ticket-form .field>:is(input,textarea,select,.select-trigger){width:100%;min-width:0;max-width:100%;border-radius:6px;box-shadow:none;background:#fff;color:#304c62;font-size:13px;line-height:1.8;padding:7px 9px}
#new-ticket-form .field>:is(input,select,.select-trigger){height:36px;min-height:36px}
#new-ticket-form .field>textarea{min-height:118px;resize:vertical}
#new-ticket-form .field>:is(input,textarea,select,.select-trigger):not([aria-invalid=true]):not(.panel-invalid-control){border:1px solid #d6e4e8}
#new-ticket-form .field>:is(input,textarea,select,.select-trigger):not([aria-invalid=true]):not(.panel-invalid-control):focus-visible{outline:0;border-color:#257b80;box-shadow:0 0 0 3px #257b8012}
#new-ticket-form .field>input[readonly]{background:#f7fafb;color:#627b8e}
#new-ticket-form .select-trigger{gap:7px;text-align:start;font-size:12px}
#new-ticket-form .select-trigger .select-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#new-ticket-form .select-trigger>.icon{width:13px;height:13px;flex:none;color:#668c91}
#new-ticket-form .field>small{font-size:10px;line-height:1.85;color:#627b8e}
#new-ticket-form :is(input,textarea)::placeholder{color:#7a909e;opacity:1;font-size:12px}
.ticket-create-actions{position:sticky;bottom:0;z-index:2;padding:10px 15px 12px;border-top:1px solid #e3ecef;background:#fff}
.ticket-create-actions>p{font-size:10px;line-height:1.85;color:#627b8e;margin:0 0 8px;overflow-wrap:anywhere}
.ticket-create-actions>div{display:flex;justify-content:space-between;align-items:center;gap:10px}
#new-ticket-form .ticket-create-actions .btn{font-size:11px;min-height:34px;padding:6px 12px;line-height:1.8;border-radius:6px;box-shadow:none;gap:6px;border:1px solid #d6e4e8;background:#fff;color:#536f80}
#new-ticket-form .ticket-create-actions .btn-primary{background:#257b80;border-color:#257b80;color:#fff;min-width:118px;font-weight:600}
#new-ticket-form .ticket-create-actions .btn-primary:hover{background:#1d6268;border-color:#1d6268}
#new-ticket-form .ticket-create-actions .icon{width:14px;height:14px}
#new-ticket-form .ticket-create-actions button:focus-visible{outline:2px solid #257b80;outline-offset:3px}
.ticket-topic-picker .select-picker{width:min(420px,calc(100% - 24px));border-radius:10px}
.ticket-topic-picker .picker-options{max-height:min(350px,50dvh)}
.ticket-topic-picker .picker-option{font-size:12px;min-height:36px;padding:7px 10px;line-height:1.8}
.ticket-topic-picker .picker-option[aria-selected=true]{background:#edf7f6;color:#21686e}
.ticket-topic-picker .picker-option[aria-selected=true] .picker-check{background:#257b80;border-color:#257b80}
@media(max-width:600px){
 .modal:has(#new-ticket-form){margin:12px;max-height:calc(100dvh - 24px);max-width:calc(100% - 24px);border-radius:10px}
 #new-ticket-form .field>:is(input,textarea){font-size:16px}
 #new-ticket-form .field>textarea{min-height:128px;line-height:1.9}
 .ticket-create-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
/* Compact ticket conversation with an independent history and reachable reply. */
.support-page .sp-detail{padding:14px 16px;max-width:880px;margin-inline:auto;min-width:0}
.sp-detail>.sp-back{font-size:10px;margin-bottom:8px;min-height:26px}
.sp-detail .sp-detail-heading h2{font-size:13px;line-height:1.9}
.sp-detail>.sp-ticket-meta{padding-bottom:11px;border-bottom:1px solid #e7eef2;gap:3px 10px}
.sp-thread-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.sp-thread-heading h3{font-size:11px;font-weight:600;margin:0;color:#456579}
.sp-thread-heading>span{font-size:10px;color:#627b8e}
.sp-detail .sp-conversation{display:flex;flex-direction:column;gap:10px;min-height:140px;max-height:min(440px,46dvh);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b1cdd0 transparent;border:0;padding:12px 3px;margin:0 0 10px;scroll-padding-block:12px;min-width:0}
.sp-conversation:focus-visible{outline:2px solid #96bfc2;outline-offset:3px;border-radius:6px}
.sp-detail .sp-message{flex:none;width:fit-content;max-width:90%;min-width:min(240px,90%);padding:9px 11px;border-radius:8px;margin:0;border:1px solid #dce7ef;background:#f4f8fc;align-self:flex-start}
.sp-detail .sp-message-support{align-self:flex-end;background:#f0f8f6;border-color:#d5e8e4}
.sp-detail .sp-message-system{align-self:center;background:#f7f9fa;border-color:#e4eaee}
.sp-detail .sp-message header{gap:4px 16px;font-size:10px;line-height:1.9;align-items:center}
.sp-detail .sp-message header strong{display:inline-flex;align-items:center;gap:5px;color:#366589;font-size:11px;font-weight:600}
.sp-detail .sp-message-support header strong{color:#256b68}
.sp-detail .sp-message-system header strong{color:#627b8e}
.sp-message header strong>.icon{width:13px;height:13px;flex:none}
.sp-detail .sp-message header time,.sp-message-undated{font-size:10px;font-weight:400;color:#627b8e}
.sp-detail .sp-message p{font-size:12px;line-height:1.95;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:start}
.support-page .sp-detail #ticket-reply-form{position:sticky;bottom:12px;z-index:3;padding:12px 0 0;margin:0;background:#fff;border-top:1px solid #dce7eb;box-shadow:0 -8px 12px #ffffffeb;min-width:0}
.sp-detail #ticket-reply-form .field{gap:5px;margin:0;min-width:0}
.sp-detail #ticket-reply-form .field>span{font-size:11px;color:#456579;font-weight:500}
.sp-detail #ticket-reply-form .field em{font-style:normal;color:#257b80}
.sp-detail #ticket-reply-form textarea{height:70px;min-height:70px;max-height:180px;resize:vertical;font-size:13px;padding:8px 10px;line-height:1.9;border-radius:7px;color:#304c62;border:1px solid #d6e4e8;box-shadow:none;scroll-margin-bottom:110px}
.sp-detail #ticket-reply-form textarea:not([aria-invalid=true]):not(.panel-invalid-control):focus-visible{outline:0;border-color:#257b80;box-shadow:0 0 0 3px #257b8012}
.sp-detail #ticket-reply-form textarea::placeholder{color:#7a909e;font-size:12px;opacity:1}
.sp-detail .sp-reply-actions{margin-top:8px;gap:6px 10px}
.sp-detail .sp-reply-actions small{font-size:10px;line-height:1.8;flex:1;min-width:140px}
.sp-detail .sp-reply-actions .btn{min-height:33px;font-size:11px;padding:6px 11px;flex:none}
@media(max-width:760px){
 .support-page .sp-detail{padding:12px}
 .sp-detail .sp-conversation{max-height:42dvh;min-height:120px;gap:9px;padding-inline:1px}
 .sp-detail .sp-message{max-width:94%;min-width:min(210px,94%);padding:8px 10px}
 .sp-detail .sp-message header{gap:2px 8px;align-items:flex-start;flex-direction:column}
 .support-page .sp-detail #ticket-reply-form{bottom:calc(62px + env(safe-area-inset-bottom));padding-top:10px}
 .sp-detail #ticket-reply-form textarea{font-size:16px;line-height:1.8;min-height:72px;height:72px}
}
/* Ticket attachments: small previews, wrapping file names and accessible controls. */
.sp-attachment-editor{margin-top:10px;min-width:0}
.sp-attachment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.sp-attach-button{position:relative;display:inline-flex;align-items:center;gap:5px;border:1px solid #d6e5e6;border-radius:6px;background:#f7fbfa;padding:5px 8px;min-height:30px;color:#257b80;font-size:11px;cursor:pointer;max-width:100%;overflow:hidden}
.sp-attach-button .icon{width:13px;height:13px;flex:none}
.sp-attach-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0!important;min-height:0!important}
.sp-attach-button:focus-within{outline:2px solid #257b80;outline-offset:3px}
.sp-attachment-toolbar>small,.sp-attach-help{font-size:10px;color:#627b8e;line-height:1.85}
.sp-attach-help{margin:5px 0 0;overflow-wrap:anywhere}
.sp-attachment-drafts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:6px;margin-top:7px;min-width:0;max-height:135px;overflow-y:auto;scrollbar-width:thin}
.sp-file-draft{display:flex;align-items:center;gap:7px;min-width:0;padding:6px 7px;border:1px solid #e1e9ec;border-radius:6px;background:#fafcfc}
.sp-file-draft>img{width:34px;height:34px;object-fit:cover;border-radius:4px;flex:none}
.sp-file-draft>.icon{width:22px;height:22px;color:#6b9297;flex:none}
.sp-file-draft>span{display:grid;gap:2px;flex:1;min-width:0}
.sp-file-draft b{font-size:10px;font-weight:500;color:#405f72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:start}
.sp-file-draft small{font-size:9px;color:#627b8e}
.sp-file-draft>button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:5px;color:#7b7272;background:transparent;cursor:pointer;flex:none}
.sp-file-draft>button:hover{background:#f8eeee;color:#9b5651}
.sp-file-draft>button .icon{width:13px;height:13px}
.sp-attachment-feedback{font-size:10px;color:#257b80;line-height:1.8;margin:5px 0 0}
.sp-attachment-feedback:empty,.sp-attachment-drafts:empty{display:none}
.sp-message-files{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin-top:9px;min-width:0}
.sp-message-file{display:flex;align-items:center;gap:9px;border:1px solid #dbe7e9;border-radius:6px;padding:7px;background:#ffffffc9;min-width:0}
.sp-message-file>.icon{width:24px;height:24px;flex:none;color:#64858e}
.sp-message-file>div{min-width:0;flex:1;display:grid;gap:3px}
.sp-message-file strong{font-size:11px;font-weight:500;line-height:1.8;overflow-wrap:anywhere;text-align:start;color:#304c62}
.sp-message-file small{font-size:10px;color:#627b8e}
.sp-message-file a{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#257b80;text-decoration:none;line-height:1.8;min-height:24px;justify-self:start}
.sp-message-file a .icon{width:12px;height:12px}
.sp-file-image{padding:0;border:0;border-radius:5px;background:#edf3f5;cursor:zoom-in;flex:none;width:64px;height:64px;overflow:hidden}
.sp-file-image img{display:block;width:100%;height:100%;object-fit:cover}
.sp-file-preview{text-align:center;min-width:0}
.sp-file-preview img{display:block;max-width:100%;max-height:60dvh;object-fit:contain;margin:auto;border-radius:6px}
.sp-file-preview p{font-size:11px;color:#627b8e;line-height:1.8;overflow-wrap:anywhere;margin:10px 0}
.sp-file-preview .btn{min-height:32px;font-size:11px;border-radius:6px}
.sp-file-preview .icon{width:13px;height:13px}
#ticket-reply-form .sp-attachment-editor .sp-attach-help{font-size:9px}
@media(max-width:600px){.sp-file-image{width:52px;height:52px}.sp-attachment-drafts{max-height:110px}.sp-message-file{padding:6px;gap:7px}}

/* Mobile ticket history and reply share the normal page scroll. */
@media(max-width:767px){
 .support-page .sp-detail .sp-conversation{height:auto;max-height:none;min-height:0;overflow:visible;overscroll-behavior-y:auto}
 .support-page .sp-detail #ticket-reply-form{position:static;bottom:auto;z-index:auto;box-shadow:none}
 .support-page .sp-detail .sp-attachment-drafts{max-height:none;overflow:visible}
}

@media(min-width:768px){
 .support-page .sp-detail .sp-conversation{height:auto;max-height:none;min-height:0;overflow:visible;overscroll-behavior-y:auto;padding-block:16px;gap:14px}
 .support-page .sp-detail #ticket-reply-form{position:static;bottom:auto;box-shadow:none;z-index:auto;margin-top:16px}
 .support-page .sp-detail .sp-message{max-width:85%;padding:12px 14px}
}
