/* Support is a viewport workspace: history scrolls, the composer stays in view. */
body.support-thread-open {height:var(--support-viewport,100dvh);min-height:0;overflow:hidden;}
body.support-thread-open>.site-footer {display:none;}
body.support-thread-open #workspace-view {height:100%;min-height:0;}
body.support-thread-open .workspace-main {height:100%;display:flex;flex-direction:column;min-height:0;}
body.support-thread-open .workspace-header {flex:0 0 72px;position:relative;}
body.support-thread-open .workspace-content {flex:1;min-height:0;width:100%;margin:0 auto;display:flex;flex-direction:column;padding:18px 28px;animation:none;}
body.support-thread-open [data-view=support]:not(.hidden) {display:flex;flex-direction:column;flex:1;min-height:0;gap:14px;}
body.support-thread-open [data-view=support]>.page-heading {flex:0 0 auto;flex-flow:row wrap;align-items:center;margin:0;gap:12px;}
.support-ticket-card {
  display:flex;
  align-items:center;
  gap:12px;
  max-width:100%;
  margin-inline-start:auto;
  padding:7px 12px;
  border:1px solid var(--line-2);
  border-radius:14px;
  background:linear-gradient(var(--surface-2),var(--surface-2)),var(--bg-2);
}
.support-ticket-card .support-owner-id {
  display:grid;
  gap:0;
  padding-inline-end:12px;
  border-inline-end:1px solid var(--line-2);
  font-size:11px;
  font-weight:600;
}
.support-ticket-card .public-account-copy {
  padding:3px 0;
  border:0;
  background:transparent;
  font-size:13px;
}
.support-ticket-card .public-account-copy:hover {color:var(--brand);}
.support-ticket-card #support-status {min-width:0;white-space:normal;}
.support-ticket-card #support-status:empty {display:none;}
body.support-thread-open [data-view=support] .page-heading h1 {font-size:25px;margin:3px 0;}
body.support-thread-open [data-view=support] .page-heading p {margin:0;font-size:12px;}
body.support-thread-open [data-view=support]>.card {display:flex;flex:1;flex-direction:column;min-height:0;margin:0;overflow:hidden;padding:16px 20px 12px;}
body.support-thread-open .support-messages {flex:1 1 0;height:auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:12px 5px;}
body.support-thread-open #support-older {flex:0 0 auto;align-self:flex-start;min-height:28px;}
.support-composer {flex:0 0 auto;min-width:0;border-top:1px solid var(--line);padding-top:12px;}
.support-composer>label {display:block;font-size:12px;font-weight:650;margin:0 0 7px;}
.support-composer textarea {display:block;width:100%;height:64px;min-height:0;max-height:100px;resize:none;margin:0;font-size:13px;line-height:1.5;}
.support-composer .support-send {display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;gap:12px;margin-top:9px;}
.support-composer .support-send .micro {flex:1;min-width:0;font-size:11px;line-height:1.4;margin:0;}
.support-composer .support-send>.button {flex-shrink:0;min-height:42px;}
.support-composer .form-error:empty {display:none;}
.support-composer .form-error {font-size:12px;margin:8px 0 0;}
.support-attach {display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--line-2);border-radius:11px;background:var(--surface-2);color:var(--brand);}
.support-attach:hover {border-color:var(--brand);background:var(--brand-soft);}
.support-attach svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.support-attachment-pending {display:flex;align-items:center;gap:9px;min-width:0;margin-top:8px;padding:7px 10px;border:1px solid var(--brand-line);background:var(--brand-soft);border-radius:10px;font-size:11px;}
.support-attachment-pending>span {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.support-attachment-pending button {flex-shrink:0;min-width:30px;min-height:30px;font-size:20px;color:var(--text);}
.support-composer [hidden] {display:none!important;}
.support-image-open {display:block;width:min(280px,100%);min-width:0;padding:5px;margin-top:10px;border:1px solid var(--line-2);border-radius:11px;background:var(--surface-solid);text-align:center;color:var(--muted);font-size:11px;overflow:hidden;}
.support-image-open img {display:block;width:100%;height:150px;object-fit:contain;border-radius:7px;background:var(--surface-2);}
.support-image-open span {display:block;padding:6px 8px 2px;}
.support-bubble p:empty {display:none;}
.support-image-viewer {width:min(860px,calc(100vw - 24px));padding:16px;max-height:calc(var(--support-viewport,100dvh) - 24px);overflow:hidden;}
.support-image-viewer .modal-head {padding:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.support-image-viewer .modal-head h3 {margin:0;font-size:17px;}
.support-image-viewer>img {display:block;width:100%;max-height:calc(var(--support-viewport,100dvh) - 120px);object-fit:contain;border-radius:12px;}
/* Only an open admin conversation uses the fixed workspace; inbox lists paginate normally. */
body.support-thread-open .admin-shell,body.support-thread-open .admin-main {height:100%;min-height:0;}
body.support-thread-open .admin-main {display:flex;flex-direction:column;}
body.support-thread-open .admin-header {flex:0 0 auto;position:relative;}
body.support-thread-open .admin-workspace {flex:1;min-height:0;display:flex;flex-direction:column;padding:16px 24px;}
body.support-thread-open .admin-workspace>.page-heading,body.support-thread-open #admin-stats {display:none;}
body.support-thread-open #admin-content {display:flex;flex:1;min-height:0;overflow:hidden;margin:0;padding:18px;}
body.support-thread-open .admin-support-thread {display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;}
body.support-thread-open .admin-support-heading {padding-bottom:12px;flex:0 0 auto;}
body.support-thread-open .admin-support-tools {min-height:32px;flex:0 0 auto;}
body.support-thread-open .admin-support-thread .support-messages {height:auto;min-height:0;flex:1;}
body.support-thread-open .admin-support-composer {padding-top:10px;}
body.support-thread-open .admin-support-composer textarea {height:64px;min-height:0;max-height:100px;resize:none;}
@media(max-width:760px) {
 body.support-thread-open.support-keyboard-open #workspace-view,
 body.support-thread-open.support-keyboard-open .admin-shell {position:fixed;top:var(--support-viewport-top,0px);left:0;right:0;height:var(--support-viewport,100dvh);min-height:0;}
 body.support-thread-open .workspace-content {padding:12px 10px calc(var(--mobile-nav-height,0px) + 10px);}
 body.support-thread-open [data-view=support]:not(.hidden) {gap:10px;}
 body.support-thread-open [data-view=support]>.card {padding:10px 12px;}
 body.support-thread-open [data-view=support]>.page-heading .eyebrow,body.support-thread-open [data-view=support]>.page-heading p {display:none;}
 body.support-thread-open [data-view=support]>.page-heading h1 {font-size:21px;}
 body.support-thread-open #support-status {font-size:10px;max-width:100%;white-space:normal;}
 body.support-thread-open .support-composer textarea {height:48px;min-height:0;font-size:16px;}
 body.support-thread-open .support-composer>label {font-size:11px;margin-bottom:5px;}
 body.support-thread-open .support-composer {padding-top:9px;}
 body.support-thread-open .support-composer .support-send {gap:8px;margin-top:7px;}
 body.support-thread-open .support-composer .support-send>.micro {display:none;}
 body.support-thread-open .support-composer .support-send>.button {padding:9px 12px;font-size:12px;min-height:42px;margin-left:auto;}
 body.support-thread-open .admin-workspace {padding:10px;}
 body.support-thread-open #admin-content {padding:12px;}
 body.support-thread-open .admin-support-heading {gap:8px;padding-bottom:8px;}
 body.support-thread-open .admin-support-heading-actions {gap:8px;}
 body.support-thread-open .admin-support-person h3 {font-size:15px;}
 body.support-thread-open .admin-support-email {font-size:11px;margin-top:3px;}
 body.support-thread-open .admin-support-person .eyebrow {display:none;}
 body.support-thread-open .support-bubble {padding:10px 12px;max-width:94%;}
 body.support-thread-open.support-keyboard-open .mobile-workspace-nav {display:none;}
 body.support-thread-open.support-keyboard-open .workspace-content {padding-bottom:8px;}
}
@media(max-height:620px) {
 body.support-thread-open .admin-support-person .avatar {display:none;}
 body.support-thread-open .support-messages {gap:9px;}
 body.support-thread-open .support-composer .support-send>.micro {display:none;}
 body.support-thread-open .support-composer .support-send>.button {margin-left:auto;}
}
