.tm-media-card,.tm-server-media-settings,.tm-media-account-settings{border:1px solid var(--border-2,#4b5360);border-radius:12px;padding:12px;margin:8px 0;max-width:100%;overflow-wrap:anywhere}.tm-media-controls{display:flex;flex-wrap:wrap;gap:6px}.tm-media-content{display:block;max-width:100%;max-height:480px;object-fit:contain;margin:6px 0}.tm-media-import-dialog{max-width:min(94vw,520px);border:1px solid var(--border-2,#555);border-radius:14px;padding:20px;background:var(--surface-1,#171d29);color:var(--text-1,#fff)}.tm-media-import-dialog::backdrop{background:#000a}.tm-media-import-dialog button{margin:10px 6px 0 0}.tm-server-media-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}.nav-icon:has(.tm-server-media-image){position:relative;overflow:hidden}.tm-media-attach{flex:none;white-space:normal}@media(max-width:640px){.tm-media-controls button{flex:1 1 42%;min-height:40px}.tm-media-attach{font-size:11px;max-width:65px}.tm-media-content{max-height:340px}}@media(prefers-reduced-motion:reduce){.tm-media-card *{scroll-behavior:auto}}

.tm-mobile-row:has(>.tm-server-media-image){position:relative;padding-left:64px}.tm-mobile-row>.tm-server-media-image{inset:auto;left:12px;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:10px}
