/* Approved compact creation form and conversation with a dedicated attachment rail. */
.ticket-mobile-picker{display:none}
.tickets-redesign .support-ticket-grid{grid-template-columns:24% minmax(0,1fr)}
[data-support-layout] .tickets-redesign .ticket-compose{padding:26px 30px}
[data-support-layout] .tickets-redesign .ticket-compose textarea{height:clamp(140px,calc(100dvh - 540px),240px);min-height:100px;max-height:360px}
.tickets-redesign .ticket-new-attachment{margin:0 0 22px;min-width:0}
.tickets-redesign .ticket-selected-files{display:flex;flex-direction:column;gap:6px;max-height:186px;overflow:auto;overscroll-behavior:contain}
.tickets-redesign .ticket-selected-files>.ticket-selected-file{flex-shrink:0}
.tickets-redesign .ticket-file-heading .ticket-add-files{display:inline-flex;align-items:center;gap:4px;margin-left:auto;padding:2px 6px;min-height:22px;border:0;background:transparent;color:#e86e57;font-size:11px}
.tickets-redesign .ticket-file-error>span{display:block;max-height:60px;overflow:auto;overflow-wrap:anywhere}
.tickets-redesign .ticket-file-heading{display:flex;align-items:center;gap:8px;margin:0 0 12px;min-width:0}
.tickets-redesign .ticket-file-heading label{font-size:13px;font-weight:600}
.tickets-redesign .ticket-file-heading>small{margin-left:auto;font-size:11px;text-align:right}
.tickets-redesign .ticket-selected-file{display:flex;align-items:center;gap:12px;min-height:58px;padding:9px 12px;border:1px solid #e7e7eb;border-radius:9px;background:#f8f8fa;box-sizing:border-box}
.tickets-redesign .ticket-local-thumb{position:relative;display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:6px;overflow:hidden;background:#fff0e9;color:#c8816b}
.tickets-redesign .ticket-local-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#f6f6f8}
.tickets-redesign .ticket-file-summary{display:flex;align-items:center;gap:12px;flex:1;min-width:0;font-size:12px}
.tickets-redesign [data-ticket-file-name]{font-size:13px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;color:#33343a}
.tickets-redesign [data-ticket-file-size]{white-space:nowrap;font-size:11px}
.tickets-redesign [data-ticket-file-status]{font-size:11px;white-space:nowrap;color:#b57722}
.tickets-redesign [data-ticket-file-status]::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#eeb247;margin-right:6px}
.tickets-redesign [data-ticket-file-status].invalid{color:#c34949;white-space:normal}
.tickets-redesign .ticket-file-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.tickets-redesign .ticket-file-actions button{display:flex;align-items:center;gap:5px;padding:6px 8px;min-height:32px;border:0;border-radius:6px;background:transparent;color:#42434d;font:inherit;font-size:12px;cursor:pointer}
.tickets-redesign .ticket-file-actions button:hover{background:#ffede6;color:#b75b44}
.tickets-redesign .ticket-file-actions button:disabled{opacity:.45;cursor:default}
.tickets-redesign .ticket-empty-pick{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;background:#fff;font-size:12px}
.tickets-redesign [hidden]{display:none!important}
.tickets-redesign .ticket-compose-footer{margin-top:0}
.tickets-redesign .ticket-compose-footer .primary{display:flex;align-items:center;gap:10px}
[data-support-layout] .tickets-redesign .ticket-thread{height:clamp(380px,calc(100dvh - 150px),800px);box-sizing:border-box;padding:24px 22px}
.tickets-redesign .ticket-thread>.support-conversation-heading{flex-shrink:0;margin-bottom:0;padding-bottom:20px}
.tickets-redesign .ticket-thread-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(210px,31%,280px);min-height:0;flex:1}
.tickets-redesign .ticket-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;padding:20px 20px 0 0}
.tickets-redesign .ticket-conversation [role=log]{flex:1;min-height:65px;max-height:none;padding:0 2px 16px}
[data-support-layout] .tickets-redesign .ticket-message{margin-bottom:24px}
.tickets-redesign .ticket-message>div{max-width:90%}
.tickets-redesign .ticket-message-meta{font-size:11px}
.tickets-redesign #svc-ops-reply{flex-shrink:0;margin:0;padding-top:16px}
[data-support-layout] .tickets-redesign #svc-ops-reply textarea{height:82px;min-height:48px;max-height:140px}
.tickets-redesign .ticket-reply-footer{justify-content:space-between;align-items:center;flex-shrink:0;margin:0}
.tickets-redesign .ticket-direct-file .btn{border:1px solid #e0e0e7;border-radius:8px;color:#555966;font-size:12px;padding:8px 10px}
.tickets-redesign .ticket-direct-hint{display:block;font-size:10px;margin-top:8px;flex-shrink:0}
.tickets-redesign .ticket-attachment-rail{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid #ededf0;padding:20px 0 0 18px}
.tickets-redesign .ticket-attachment-rail .ticket-file-heading{justify-content:flex-start;margin-bottom:8px}
.tickets-redesign .ticket-attachment-rail h3{margin:0;font-size:15px}
.tickets-redesign .ticket-file-help{font-size:11px;color:#85858c;line-height:1.7;margin:0 0 14px}
.tickets-redesign .ticket-attachment-cards{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:2px}
[data-support-layout] .tickets-redesign .ticket-attachment-card{border:1px solid #e7e7eb;border-radius:11px;background:white;padding:10px;margin:0 0 12px;min-width:0}
.tickets-redesign .ticket-image-thumb{position:relative;display:grid;place-items:center;width:100%;height:clamp(100px,16vh,155px);overflow:hidden;border:0;border-radius:7px;background:#f4f4f6;color:#a1a1aa;padding:0;cursor:pointer}
.tickets-redesign .ticket-image-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.tickets-redesign .ticket-image-thumb img.loaded{opacity:1}
.tickets-redesign .ticket-image-thumb>span{position:absolute;right:7px;top:7px;padding:4px;display:flex;border-radius:5px;background:#3338;color:white}
.tickets-redesign .ticket-attachment-info{display:flex;align-items:center;gap:10px;min-width:0;padding:4px 0 12px}
.tickets-redesign .is-image .ticket-attachment-info{padding-top:10px}
.tickets-redesign .ticket-attachment-info>div{min-width:0;flex:1}
.tickets-redesign .ticket-attachment-info strong{display:block;font-size:12px;overflow-wrap:anywhere;font-weight:600;line-height:1.5}
.tickets-redesign .ticket-attachment-info small{display:block;font-size:11px;margin-top:3px}
.tickets-redesign .ticket-file-uploaded{display:flex;align-items:center;gap:5px;font-size:10px;color:#7c8386;margin-top:5px}
.tickets-redesign .ticket-file-uploaded svg{color:#438e5b}
.tickets-redesign .ticket-media-icon{display:grid;place-items:center;background:#fff1ec;color:#ee8068;flex:0 0 44px;height:44px;border-radius:9px}
.tickets-redesign .ticket-attachment-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tickets-redesign .ticket-attachment-actions .btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 4px;min-width:0;font-size:11px;border:1px solid #dedee6;border-radius:7px;background:white}
.tickets-redesign .ticket-file-error{flex-shrink:0;margin-bottom:12px;padding:10px;font-size:12px}
.tickets-redesign .ticket-file-error .btn{font-size:11px;padding:6px 8px;max-width:100%}
.tickets-redesign .ticket-no-files{font-size:12px}
.ticket-preview-dialog{width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:18px;border:1px solid #e7e7eb;border-radius:16px;background:#fff;color:#282a31;box-shadow:0 18px 80px #2223}
.ticket-preview-dialog::backdrop{background:#23212788}
.ticket-preview-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.ticket-preview-dialog h2{margin:0;font-size:16px;overflow-wrap:anywhere;min-width:0}
.ticket-preview-dialog header .btn{flex-shrink:0;display:flex;padding:8px}
.ticket-preview-dialog>img,.ticket-preview-dialog>video{display:block;max-width:100%;max-height:calc(100dvh - 140px);margin:auto;object-fit:contain}
.ticket-preview-dialog>audio{display:block;width:100%}
.ticket-preview-dialog.ticket-player-video{width:min(960px,calc(100vw - 24px));padding:0;overflow:hidden;background:#151519;color:#fff;border-color:#333}
.ticket-player-video header{margin:0;padding:12px 16px}
.ticket-preview-dialog.ticket-player-video h2{color:#fff}
.ticket-player-video header .btn{background:#ffffff12;color:#fff;border-color:#ffffff24}
.ticket-preview-dialog.ticket-player-video>video{width:100%;height:min(54vw,calc(100dvh - 132px),540px);max-height:none;background:#000;object-fit:contain}
.ticket-preview-dialog.ticket-player-audio{width:min(520px,calc(100vw - 24px))}
.ticket-player-video .ticket-preview-feedback{margin:0;padding:8px 16px;color:#ffd0b4}
.ticket-preview-feedback{font-size:13px;color:#a65e40}
@media(max-width:1100px){
 [data-support-layout] .tickets-redesign .ticket-thread{height:auto}
 .tickets-redesign .ticket-thread-layout{grid-template-columns:minmax(0,1fr)}
 .tickets-redesign .ticket-conversation{padding-right:0}
 .tickets-redesign .ticket-conversation [role=log]{flex:none;max-height:clamp(70px,calc(100dvh - 460px),320px)}
 .tickets-redesign .ticket-attachment-rail{border-left:0;border-top:1px solid #ededf0;margin-top:18px;padding:16px 0 0}
 .tickets-redesign .ticket-file-help br{display:none}.tickets-redesign .ticket-file-help br::after{content:' · '}
 .tickets-redesign .ticket-attachment-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;max-height:290px}
 [data-support-layout] .tickets-redesign .ticket-attachment-card{margin:0}
 .tickets-redesign .ticket-file-summary{flex-wrap:wrap;gap:3px 10px}
 .tickets-redesign [data-ticket-file-name]{flex-basis:100%}
}
@media(max-width:700px){
 .tickets-redesign .support-ticket-grid{grid-template-columns:minmax(0,1fr)}
 [data-support-layout] .tickets-redesign .ticket-compose,[data-support-layout] .tickets-redesign .ticket-thread{padding:16px}
 [data-support-layout] .tickets-redesign .ticket-compose textarea{height:130px;min-height:90px}
 .tickets-redesign .ticket-file-heading{align-items:flex-start;gap:8px;flex-wrap:wrap}
 .tickets-redesign .ticket-file-heading>small{font-size:10px;max-width:65%;line-height:1.5}
 .tickets-redesign .ticket-selected-file{display:grid;grid-template-columns:30px minmax(0,1fr);gap:3px 8px;padding:8px}
 .tickets-redesign .ticket-local-thumb{grid-row:1/3;width:30px;height:30px;align-self:start}
 .tickets-redesign .ticket-file-summary{grid-column:2}
 .tickets-redesign .ticket-file-actions{grid-column:2;justify-self:end}
 .tickets-redesign .ticket-file-actions{gap:0}.tickets-redesign .ticket-file-actions button{padding:6px}
 .tickets-redesign .ticket-file-actions button:not([data-ticket-file-clear]) span{display:none}
 .tickets-redesign .ticket-file-actions button{min-width:30px;justify-content:center}
 .tickets-redesign .ticket-file-summary{font-size:11px}
 .tickets-redesign [data-ticket-file-name]{font-size:12px}
 .tickets-redesign [data-ticket-file-status],.tickets-redesign [data-ticket-file-size]{font-size:10px}
 .tickets-redesign .ticket-new-attachment{margin-bottom:16px}
 .tickets-redesign .ticket-thread>.support-conversation-heading{padding-bottom:14px}
 .tickets-redesign .ticket-thread-title h3{font-size:16px}
 .tickets-redesign .ticket-conversation{padding-top:16px}
 .tickets-redesign .ticket-conversation [role=log]{max-height:clamp(65px,calc(100dvh - 430px),300px)}
 [data-support-layout] .tickets-redesign #svc-ops-reply textarea{height:64px}
 .tickets-redesign .ticket-attachment-cards{grid-template-columns:minmax(0,1fr)}
 .tickets-redesign .ticket-image-thumb{height:140px}
 .tickets-redesign .ticket-compose-footer small{max-width:50%}
}
@media(min-width:701px) and (max-height:650px){
 [data-support-layout] .tickets-redesign .ticket-compose,[data-support-layout] .tickets-redesign .ticket-thread{padding:18px}
 [data-support-layout] .tickets-redesign .ticket-compose textarea{height:90px;min-height:76px}
 .tickets-redesign .ticket-new-attachment{margin-bottom:12px}
 .tickets-redesign .ticket-file-heading{margin-bottom:8px}
 .tickets-redesign .ticket-selected-file{min-height:50px;padding:6px 10px}
 [data-support-layout] .tickets-redesign #svc-ops-reply textarea{height:52px}
 .tickets-redesign .ticket-conversation{padding-top:14px}
 .tickets-redesign .ticket-attachment-rail{padding-top:14px}
}

/* Fit the real shell's remaining space, rather than estimating it with viewport offsets. */
.main>.svc-shell[data-support-layout]:has(.tickets-redesign){display:flex;flex-direction:column;flex:1 1 0;min-height:0;height:auto;padding:clamp(8px,2dvh,24px) clamp(8px,1.5vw,24px)}
[data-support-layout]>.membership-content[data-membership-category=tickets]{display:flex;flex-direction:column;flex:1 1 0;min-height:0}
[data-support-layout] .tickets-redesign{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:0}
.tickets-redesign .support-ticket-grid{flex:1 1 0;height:100%;min-height:0;grid-template-rows:minmax(0,1fr);grid-template-columns:24% minmax(0,1fr)}
[data-support-layout] .tickets-redesign :is(.ticket-compose,.ticket-thread){display:flex;flex-direction:column;min-height:0;height:auto;padding:clamp(12px,2.4dvh,30px) clamp(14px,2vw,30px)}
[data-support-layout] .tickets-redesign .ticket-list{display:flex;flex-direction:column;min-height:0;padding:clamp(12px,2.4dvh,28px) clamp(12px,1.6vw,24px)}
.tickets-redesign .ticket-list-items{flex:1 1 0;min-height:0;max-height:none}
.tickets-redesign .ticket-list>.support-conversation-heading,.tickets-redesign .ticket-list>[data-svc=ops-new-ticket],.tickets-redesign .ticket-list>.svc-pagination{flex-shrink:0}
.tickets-redesign .ticket-list>[data-svc=ops-new-ticket]{margin-bottom:clamp(10px,2dvh,22px)}
.tickets-redesign .ticket-compose::after{display:none}
.tickets-redesign .ticket-compose>.support-conversation-heading{flex-shrink:0;flex-wrap:nowrap;margin:0 0 clamp(12px,2.5dvh,28px);padding:0 0 clamp(12px,2.5dvh,26px)}
[data-support-layout] .tickets-redesign .ticket-compose>.field{flex-shrink:0;margin:0 0 clamp(10px,2.4dvh,24px);gap:8px}
[data-support-layout] .tickets-redesign .ticket-compose>.field:has(textarea){display:flex;flex-direction:column;flex:1 1 0;min-height:64px}
[data-support-layout] .tickets-redesign .ticket-compose textarea{flex:1 1 0;height:0;min-height:0;max-height:none;resize:none}
.tickets-redesign .ticket-new-attachment{flex-shrink:0;margin-bottom:clamp(12px,2.5dvh,28px)}
.tickets-redesign .ticket-compose-footer{flex-shrink:0;flex-wrap:nowrap;gap:10px;padding-top:clamp(10px,2dvh,22px)}
.tickets-redesign .ticket-compose-footer small{flex:1;min-width:0}
.tickets-redesign .ticket-compose-footer small>span{margin-left:8px}
.tickets-redesign .ticket-compose-footer .btn{flex-shrink:0}
.tickets-redesign .ticket-thread>.support-conversation-heading{flex-wrap:nowrap;gap:10px;margin:0;padding:0 0 clamp(12px,2dvh,24px)}
.tickets-redesign .ticket-thread-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tickets-redesign .ticket-thread-layout{flex:1 1 0;min-height:0}
.tickets-redesign .ticket-conversation{padding:clamp(12px,2.4dvh,24px) clamp(12px,1.7vw,26px) 0 0;min-height:0}
.tickets-redesign .ticket-conversation [role=log]{flex:1 1 0;min-height:0;max-height:none;padding-bottom:12px}
[data-support-layout] .tickets-redesign .ticket-message{margin:0 0 clamp(12px,2.6dvh,26px)}
.tickets-redesign .ticket-message>div{max-width:90%}
.tickets-redesign .ticket-attachment-rail{padding:clamp(12px,2.4dvh,24px) 0 0 clamp(12px,1.4vw,22px);min-height:0}
[data-support-layout] .tickets-redesign #svc-ops-reply{padding-top:12px}
[data-support-layout] .tickets-redesign #svc-ops-reply textarea{height:clamp(48px,9dvh,94px);min-height:0;max-height:none;resize:none}
.tickets-redesign .ticket-image-thumb{height:clamp(64px,16dvh,180px)}
@media(min-width:1200px) and (min-height:701px){
 .tickets-redesign .support-conversation-heading h3{font-size:26px}
 .tickets-redesign .ticket-list h3{font-size:19px}
 [data-support-layout] .tickets-redesign .ticket-compose>.field,.tickets-redesign .ticket-file-heading label{font-size:14px}
 .tickets-redesign .ticket-item strong{font-size:15px}
 .tickets-redesign .ticket-message p,[data-support-layout] .tickets-redesign .field input,[data-support-layout] .tickets-redesign textarea{font-size:16px}
 .tickets-redesign .ticket-list>[data-svc=ops-new-ticket],.tickets-redesign .ticket-compose-footer .btn,.tickets-redesign .ticket-reply-footer .btn{font-size:14px}
 .tickets-redesign .ticket-attachment-info strong{font-size:13px}
 .tickets-redesign .ticket-thread-layout{grid-template-columns:minmax(0,1fr) clamp(230px,32%,340px)}
}
@media(max-height:700px){
 .tickets-redesign .ticket-selected-files{max-height:104px}
 [data-support-layout] .tickets-redesign :is(.ticket-compose,.ticket-thread){padding:12px 14px}
 .tickets-redesign .ticket-heading-icon{width:34px;height:34px;flex-basis:34px;border-radius:9px}
 .tickets-redesign .support-conversation-heading h3{font-size:18px}
 .tickets-redesign .ticket-list h3{font-size:16px}
 .tickets-redesign .ticket-file-heading{margin-bottom:6px}
 .tickets-redesign .ticket-selected-file{min-height:48px;padding:5px 8px}
 .tickets-redesign .ticket-local-thumb{width:32px;height:32px;flex-basis:32px}
 [data-support-layout] .tickets-redesign .ticket-compose>.field{gap:5px;margin-bottom:10px}
 [data-support-layout] .tickets-redesign .ticket-compose input{padding:8px 10px;min-height:36px}
 .tickets-redesign .ticket-compose-footer .btn{padding:8px 14px}
 .tickets-redesign .ticket-compose-footer small{max-width:none}
 .tickets-redesign .ticket-file-help{margin-bottom:8px}
 .tickets-redesign .ticket-image-thumb{height:clamp(52px,12dvh,84px)}
 [data-support-layout] .tickets-redesign .ticket-attachment-card{padding:8px;margin-bottom:8px}
 .tickets-redesign .ticket-attachment-info{padding-bottom:7px}
 .tickets-redesign .ticket-attachment-info small,.tickets-redesign .ticket-file-uploaded{margin-top:2px}
 [data-support-layout] .tickets-redesign #svc-ops-reply{padding-top:8px}
 [data-support-layout] .tickets-redesign #svc-ops-reply .field{margin-bottom:8px;gap:4px}
 .tickets-redesign .ticket-direct-hint{margin-top:4px}
}
/* Compact attachment rows keep all file actions in view on tablets and phones. */
@media(max-width:1100px){
 .tickets-redesign .support-ticket-grid{grid-template-columns:23% minmax(0,1fr)}
 .tickets-redesign .ticket-thread-layout{display:flex;flex-direction:column}
 .tickets-redesign .ticket-conversation{flex:1 1 0;min-height:0;padding-right:0}
 .tickets-redesign .ticket-conversation [role=log]{flex:1 1 0;max-height:none;min-height:0}
 .tickets-redesign .ticket-attachment-rail{flex:0 1 auto;min-height:0;max-height:40%;margin-top:10px;padding:10px 0 0;border-left:0;border-top:1px solid #ededf0}
 .tickets-redesign .ticket-attachment-rail>.ticket-file-heading{margin:0 0 6px}
 .tickets-redesign .ticket-attachment-rail h3{font-size:13px}
 .tickets-redesign .ticket-file-help{font-size:10px;line-height:1.4;margin-bottom:6px}
 .tickets-redesign .ticket-file-help br{display:none}
 .tickets-redesign .ticket-attachment-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:none;min-height:0}
 [data-support-layout] .tickets-redesign .ticket-attachment-card{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:6px;align-items:center;padding:6px;margin:0}
 .tickets-redesign .ticket-image-thumb{width:32px;height:36px;grid-column:1;grid-row:1;border-radius:5px}
 .tickets-redesign .ticket-image-thumb>span{display:none}
 .tickets-redesign .ticket-attachment-info{grid-column:1/3;padding:0!important;gap:6px}
 .tickets-redesign .is-image .ticket-attachment-info{grid-column:2}
 .tickets-redesign .ticket-media-icon{flex-basis:32px;height:36px;border-radius:5px}
 .tickets-redesign .ticket-media-icon svg{width:22px;height:22px}
 .tickets-redesign .ticket-attachment-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.5}
 .tickets-redesign .ticket-attachment-info small{display:inline;font-size:10px;margin:0}
 .tickets-redesign .ticket-file-uploaded{display:inline-flex;font-size:9px;margin:0 0 0 5px;gap:2px}
 .tickets-redesign .ticket-attachment-actions{display:flex;gap:2px}
 .tickets-redesign .ticket-attachment-actions .btn{font-size:0;width:26px;min-height:30px;padding:5px;gap:0}
 .tickets-redesign .ticket-attachment-actions .btn svg{width:15px;height:15px}
 .tickets-redesign .ticket-attachment-info{min-width:0}
 .tickets-redesign .ticket-file-summary{flex-wrap:wrap;gap:2px 8px}
 .tickets-redesign [data-ticket-file-name]{flex-basis:100%}
}
@media(max-width:700px){
 .main>.svc-shell[data-support-layout]:has(.tickets-redesign){padding:8px}
 .tickets-redesign .ticket-selected-files{max-height:48px}
 .tickets-redesign .support-ticket-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:38px minmax(0,1fr);border-radius:12px}
 [data-support-layout] .tickets-redesign .ticket-list{grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:4px 8px;border:0;border-bottom:1px solid #ededf0}
 .tickets-redesign .ticket-list>.support-conversation-heading,.tickets-redesign .ticket-list-items,.tickets-redesign .ticket-list>.svc-pagination{display:none}
 .tickets-redesign .ticket-mobile-picker{display:block;width:100%;min-width:0;min-height:28px;height:28px;padding:3px 4px;font-size:11px;background:transparent;border:0}
 .tickets-redesign .ticket-list>[data-svc=ops-new-ticket]{min-height:28px;margin:0;width:auto;padding:3px 7px;font-size:11px;border-radius:6px}
 .tickets-redesign .has-thread .ticket-thread{grid-row:2}
 [data-support-layout] .tickets-redesign :is(.ticket-compose,.ticket-thread){padding:12px}
 .tickets-redesign .ticket-compose>.support-conversation-heading{margin-bottom:12px;padding-bottom:12px;gap:9px}
 .tickets-redesign .ticket-compose>.support-conversation-heading p{font-size:11px;line-height:1.4}
 .tickets-redesign .ticket-compose>.support-conversation-heading h3{font-size:18px}
 .tickets-redesign .ticket-heading-icon{width:32px;height:36px;flex-basis:32px}
 [data-support-layout] .tickets-redesign .ticket-compose>.field{margin-bottom:10px;gap:5px;font-size:12px}
 [data-support-layout] .tickets-redesign .ticket-compose>.field:has(textarea){min-height:54px}
 [data-support-layout] .tickets-redesign .ticket-compose input{min-height:36px;padding:7px 9px;font-size:12px}
 [data-support-layout] .tickets-redesign .ticket-compose textarea{padding:8px 9px;font-size:12px}
 .tickets-redesign .ticket-new-attachment{margin-bottom:10px}
 .tickets-redesign .ticket-file-heading{gap:4px;margin-bottom:6px;align-items:center}
 .tickets-redesign .ticket-file-heading label{font-size:12px}
 .tickets-redesign .ticket-file-heading>small{max-width:none;flex:1 1 100%;text-align:left;font-size:10px}
 .tickets-redesign .ticket-selected-file{display:grid;grid-template-columns:28px minmax(0,1fr) auto;padding:6px;gap:6px;min-height:48px}
 .tickets-redesign .ticket-local-thumb{grid-row:1;width:28px;height:30px;flex-basis:28px;align-self:center}
 .tickets-redesign .ticket-file-actions{grid-column:3;grid-row:1;gap:0;align-self:center}
 .tickets-redesign .ticket-file-actions button{min-width:24px;min-height:28px;padding:4px}
 .tickets-redesign .ticket-file-summary{grid-column:2;gap:1px 5px}
 .tickets-redesign [data-ticket-file-name]{font-size:11px}
 .tickets-redesign [data-ticket-file-size],.tickets-redesign [data-ticket-file-status]{font-size:9px}
 .tickets-redesign .ticket-compose-footer{padding-top:10px;align-items:center}
 .tickets-redesign .ticket-compose-footer small{max-width:none;font-size:10px;line-height:1.4}
 .tickets-redesign .ticket-compose-footer small>span{margin-left:0;display:block}
 .tickets-redesign .ticket-compose-footer .btn{padding:8px 10px;font-size:12px;gap:5px}
 .tickets-redesign .ticket-thread>.support-conversation-heading{padding-bottom:8px;gap:6px}
 .tickets-redesign .ticket-thread-title h3{font-size:15px}
 .tickets-redesign .ticket-thread>.support-conversation-heading .support-pill{font-size:10px;padding:3px 5px}
 .tickets-redesign .ticket-thread>.support-conversation-heading>.btn{font-size:10px;padding:4px 6px;min-height:28px}
 .tickets-redesign .ticket-conversation{padding-top:10px;min-height:0}
 .tickets-redesign .ticket-message-meta{font-size:10px;gap:5px;margin-bottom:4px}
 .tickets-redesign .ticket-message p{font-size:12px;padding:8px 10px;line-height:1.6}
 .tickets-redesign .ticket-message>div{max-width:96%}
 [data-support-layout] .tickets-redesign .ticket-message{margin-bottom:12px}
 [data-support-layout] .tickets-redesign #svc-ops-reply{padding-top:8px}
 [data-support-layout] .tickets-redesign #svc-ops-reply .field{margin-bottom:6px;gap:4px;font-size:12px}
 [data-support-layout] .tickets-redesign #svc-ops-reply textarea{height:42px;padding:7px 9px;font-size:12px}
 .tickets-redesign .ticket-reply-footer .btn{min-height:30px;padding:5px 8px;font-size:11px}
 .tickets-redesign .ticket-direct-hint{font-size:9px;margin-top:4px}
 .tickets-redesign .ticket-attachment-rail{max-height:48%;padding-top:8px;margin-top:8px}
 .tickets-redesign .ticket-attachment-rail>.ticket-file-heading{margin-bottom:4px}
 .tickets-redesign .ticket-attachment-rail>.ticket-file-help{display:none}
 .tickets-redesign .ticket-file-uploaded{font-size:0;gap:0;margin-left:4px;white-space:nowrap}
 .tickets-redesign .ticket-file-uploaded svg{width:11px;height:11px}
 .tickets-redesign .ticket-attachment-cards{grid-template-columns:minmax(0,1fr);gap:5px}
}
@media(min-width:701px) and (max-height:550px){
 .tickets-redesign .ticket-selected-files{max-height:48px}
 .main>.svc-shell[data-support-layout]:has(.tickets-redesign){padding:6px 10px}
 [data-support-layout] .tickets-redesign :is(.ticket-thread,.ticket-compose){padding:10px 12px}
 .tickets-redesign .ticket-compose>.support-conversation-heading{margin-bottom:8px;padding-bottom:8px}
 .tickets-redesign .ticket-new-attachment{margin-bottom:8px}
 .tickets-redesign .ticket-compose-footer{padding-top:8px}
 .tickets-redesign .ticket-conversation{padding-top:8px}
 .tickets-redesign .ticket-thread>.support-conversation-heading{padding-bottom:8px}
 .tickets-redesign .ticket-attachment-rail{padding-top:6px;margin-top:6px;max-height:38%}
 .tickets-redesign .ticket-attachment-rail>.ticket-file-heading{margin-bottom:3px}
 .tickets-redesign .ticket-file-help{margin-bottom:4px}
 [data-support-layout] .tickets-redesign #svc-ops-reply textarea{height:38px;padding:7px 10px}
 .tickets-redesign .ticket-reply-footer .btn{padding:5px 9px;min-height:30px}
 .tickets-redesign .ticket-direct-hint{display:none}
 .tickets-redesign .ticket-conversation [role=log]{padding-bottom:4px}
 [data-support-layout] .tickets-redesign .ticket-message{margin-bottom:8px}
 .tickets-redesign .ticket-message-meta{font-size:10px;line-height:1.3;margin-bottom:3px}
 .tickets-redesign .ticket-message p{font-size:12px;line-height:1.5;padding:6px 8px}
}
/* Short landscape windows keep files beside the log to preserve reading height. */
@media(min-width:701px) and (max-width:1100px) and (max-height:600px){
 .tickets-redesign .ticket-thread-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(166px,36%,220px)}
 .tickets-redesign .ticket-conversation{padding-right:12px}
 .tickets-redesign .ticket-attachment-rail{max-height:none;margin:0;padding:8px 0 0 10px;border-top:0;border-left:1px solid #ededf0}
 .tickets-redesign .ticket-attachment-cards{grid-template-columns:minmax(0,1fr)}
}
